Hi,
I am trying to pass a parameter in the target URL in a Pass Through [PT]RewriteRule, but it is ignoring the parameters.
Requirement:
Rewrite www.mydomain.com/hotels.html to www.mydomain.com/index.html?type=hotel
Rule applied:
RewriteCond %{HTTP_HOST} ^www\.mydomain\.com
RewriteCond %{REQUEST_URI} \/hotels\.html$
RewriteRule ^/hotels\.html$ /index.html?type=hotel [PT,L]
This works fine if I change [PT,L] to [R=301,L], but it changes the URL in the browser, which is not desirable.
Can you please help?
Thanks
Abhilash