Redirect root directory to a subdirectory using .htaccess
Posted in web development on 08/23/2010 04:05 pm by ashluxEvery so often I need to redirect from the root directory http://www.someserver.com to http://www.someserver.com/blah. The first thing I try is always something like:
# This does not work RedirectMatch permanent / /blah
This ends up not working with Firefox reporting “the page isn’t redirecting properly”. I guess the server gets confused and redirects indefinitely so you must do this instead:
# Redirect from / to /blah RedirectMatch permanent ^/$ http://www.someserver.com/blah
*cheers*














