Hello All,
I am having a problem with a rule that I am hoping someone can provide some assistance on.
I have a .htaccess in the root of my site.
Then in a development directory I have that exact same .htaccess adding the directory to the rules where necessary.
The code I have is this in the root:
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
order deny,allow
And this in the development
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule (.*) http://www.mydomain.com/dev/$1 [R=301,L]
order deny,allow
When I type in mydomain.com/dev it redirects to: mydomain.com/dev//home/mydomain/public_html/dev
Thanks in advance for your help!
[edited by: nickCR at 9:29 pm (utc) on Dec 29, 2011]