Hi ,
I have to redirect
http://www.domainA.com/333 to http://www.domainA.com/dirA/666.html
I am using this rule
RewriteCond ${HTTP_POST} ^(www\.)?domainA\.com$ [NC]
RewriteCond {REQUEST_URI} ^/333$ [NC]
RewriteRule ^(.*)$ http://www.domainA.com/dirA/666.html [R=301,L,NC]
This works fine, but I also need to redirect
http://www.domainA.com to http://www.domainA.com/xyz/abc.html
for which I use,
RewriteCond ${HTTP_POST} ^(www\.)?domainA\.com$ [NC]
RewriteCond {REQUEST_URI} ^$ [NC]
RewriteRule ^$ http://www.domainA.com/xyz/abc.html [R=301,L,NC]
But that did not work
If I use
RewriteCond ${HTTP_POST} ^(www\.)?domainA\.com$ [NC]
RewriteRule ^(.*)$ http://www.domainA.com/xyz/abc.html [R=301,L,NC]
This works but than it always takes it to this path, no matter what the keyword is after the domain name, so effectively my first rule does not work.
Appreciate any help