I am having difficulty making this work, and I have tried hard over the past 24 hrs.
I have http://localhost/my-property/?p=1 which I need to redirect to http://localhost/my-property/index.html?p=1.
Simples!! Well not for me I am afraid.
My ht_access file contains the following:
Options +FollowSymLinks All -Indexes
RewriteRule ^/p=([0-9]+)$ /my-property/index.html?p=$1 [L,R=301]
RewriteRule index([0-9]+)\\.html$ index.html [L,R=301]
RewriteRule list-page([0-9]+)\\.html$ /my-property/index.html?p=$1 [L,R=301]
RewriteRule ^(.*)\\.html $1.php [L]
The first line is the one that is causing me grief, the others work just fine, andthis is the final attempt of many with and without a rewrite cond.
I hope somebody can point out just where I am going wrong, I have trawled the pages of this site but still cannot find a solution.