In my htaccess I have a rule -
I have this rule
RewriteRule ^mk$ http://mysite.com/mypage.php [r=301,nc]
and later on :
RewriteCond %{HTTP_HOST} !^mysite\.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [QSA,L,R=301]
This works fine for
http://mysite.com/mk
- it redirects to:
http://mysite.com/mypage.php
as I wanted.
...but when I go to
http://www.mysite.com/mk
it redirects to http://mysite.com/http://mysite.com/mypage.php
Are these 2 rules incompatable? Can anyone tell me what's happening and what to do?
Thanks