Inside of my root directory (/www) is two folders: first_content and second_content.
When the user visits http://www.first.com, I want the user to be silently redirected to http://www.first.com/first_content/. When the user visits http://www.second.com, they're redirected to http://www.first.com/second_content.
Here's the .htaccess file I'm using (I can't figure out how to do it for second_content):
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ /first_content/ [NC,L]
For some reason, I if I place this .htaccess file inside of first.com/test, it redirects from first.com/first_contents. But if I move the .htaccess file to the root directory, I get a 500 server error.
I'd greatly appreciate anyone who can help me.
Thanks