Forum Moderators: phranque
With the following code it redirects all pages to the new domain
Code:
RewriteCond %{HTTP_HOST} ^.*oldwebsite\.com$ [NC]
RewriteRule ^(.*)$ [newwebsite.net...] [R=301,L]
so oldwebsite.com -> newwebsite.net
The problem is that oldwebsite.com/folder/file1.html is also -> newwebsite.net
What is the code for having oldwebsite.com/folder/file1.html automaticly redirecting to newwebsite.net/
Jim