How tdo I do this in htaccess, it just leads me to a page that doesn't load. Here is my base htaccess file without redirecting. Please tell me what to add. # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName mysite.com AuthUserFile /home/mysite/public_html/_vti_pvt/service.pwd AuthGroupFile /home/mysite/public_html/_vti_pvt/service.grp Code (markup): Thanks
try this RewriteEngine on RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^http://www.oldsite.com [NC] RewriteRule ^/(.*) http://www.newsite.com/ [L,R=301]