Sub-folder redirect?


#1

Is there any way to have your main domain redirect to a sub-folder within the same site? For example, have http://www.mydomain.com automatically redirect to http://www.mydomain.com/blog.


#2

Add the following line to your .htaccess file:

RedirectMatch ^/$ http://www.example.org/blog/

If you want useful replies, ask smart questions.


#3

Ooh, that worked. Thank you!


#4

I typically use the control panel to do exactly that. Although doing it with .htaccess is faster than waiting for the panel to do its thing.