I have a working site and dev site.The htaccess code in dev site starts with
RewriteCond %{HTTP_HOST} ^abc\.co\.uk$
RewriteRule (.*) http://www.abc.co.uk/dev2$1 [NC,R=301,L]
Where dev2 is the folder name under root.But whenever I click a link from dev2 site it is redirecting to the live site. I think the problem is in the second line?
Try
or the more verbose: