custom htacces redirect
-
Looking to move a site and wanted to know if following code would 301 redirect each page to the new page i.e site1.co.uk/page1 to site2.co.uk/page1 and site1.co.uk/page2 to site2.co.uk/page2 and so on rather than 301 redirect any old page to the main page of new site?
RewriteCond %{HTTP_HOST} ^.*oldsite\.com$ [NC] RewriteRule ^(.*)$ https://newsite.com/$1 [R=301,L]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘custom htacces redirect’ is closed to new replies.