Site5 - Built For Designers & Developers MENU

How To Redirect Your Domain To A Subfolder Using .htaccess

[2 Grey Star Level]

I’m new to wordpress and the codex redirected me to the above page on your site. I have read it but can’t figure out how to comment on that page so I’m asking my question here.

I changed my .htaccess file as you suggest and copied it to my root directory as well as copied index.php from omaoa.org/wordpress however going to omahaoa.org as a user would still shows the old index.html rather than the home page I designed in wordpress. What should I do?

Thanks in advance for the help.
Tom S.
Webservant

Answer #1

Hi Tom,

The following .htaccess code should do the trick and get your site to redirect to the subdirectory:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ blog [L]

However, there are some other changes you might need to make to your WordPress setup that are further explained here:

http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

If you continue to have problems with your redirections, please feel free to contact support by opening a ticket through Backstage and we’ll be glad to take a look!

Answers Answered By: corey.mahon [12 Grey Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.