Redirect root to folder
If you want to redirect your root site to a subfolder then the following code can help you:
RedirectMatch ^/$ http://name.com/forums/
Add that to your .htaccess file after “RewriteEngine On”.
The ^ is a regular expression and stands for the the start string, the $ stands for the end string.
If you are new to RegEx I recommend the Regular Expression Cheat Sheet!
Like our posts? Then subscribe via Mail:
Similar Posts:
- Move Wordpress Blog To A New Host Or Domain
- HTACCESS: Prevent Hotlinking by Referrer
- Rewrite uppercase URL’s to lowercase
- Apache “Under Construction” with exceptions
- Emergency Plan B – Wordpress Mass Attack
Socialize:
|
|











Leave your response!