Forum Moderators: phranque
example.com is still showing the index page although I have used a redirect htaccess
i used the following code:
#Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com$[OR]
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ http://www.example.org/$1 [R=301,L]
redirect 301 /somefolder/ http://www.example.org/
Yours would look like:
redirect 301 / http://www.example.org/
i have a few websites under ONE hosting account so OLDDOMAIN.com is pointing to example.com/olddomain
and the new one is pointing to example.com/newdomain
The 301 redirect doesnt work and I am thinking its because the htaccess should be uploaded in the root directory which basically FW's ALL my domains to the newdomain. I only want to redirect one website (under the olddomain folder) to the new one.
thanks,