I have the rule below which works perfectly, however My oldsite urls have .html and me newsite doesn’t. Is it possible to strip the .html before redirecting? e.g.
http://www.oldsite.com/mypage.html
gets redirected to
http://www.newsite.com/subdir/mypage/
e.g.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.oldsite.com$ [NC]
RewriteRule ^(.*)$ http://www.newsite.co.uk/subdir/$1 [R=301,L]
so
www.oldsite.com/mypage.htmlwill be redirected towww.newsite.com/subdir/mypage