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 however going to 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.

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.)?$
RewriteRule ^(/)?$ blog [L]

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

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.