Hello,
I am trying to map a URL to a sub path using .htaccess.
Does this look right?
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.co.uk/sub-path[nc]
RewriteRule ^(.*)$ http://www.domain.co.uk/sub-path/$1 [r=301,nc]
//301 Redirect Old File
Redirect 301 www.anotherdomain.co.uk www.domain.co.uk/sub-path
//301 Redirect Entire Directory
RedirectMatch 301 www.anotherdomain.co.uk(.*) www.domain.co.uk/sub-path/$1
Many thanks!