I have an asp site on a windows server and I am currently rewriting it to php then will be putting it on a linux server, where I am testing everything!
I am using the following to rewrite to the .asp extension - the site is over 16 years old and has thousands of links scattered around the net with the .asp extension so I don’t want to loose all that link juice.
RewriteRule ^(([^/]+/)*[^.]+)\\.asp$ /$1.php [R]
I am writing all of my php pages with the same name as the asp pages and the above works so I am happy that I got that to work
I am now trying to get a pretty URL and have used the following and it works
RewriteRule ^navigation/map$ /nav/nzmap.php
Now what I have not been able to work out is this senario.
Someone clicks on a link to nzmap.asp which from rule 1 will call the nzmap.php page (works)
THEN the nzmap.php page will show the URL navigation/map as of rule 2 (that does not happen.)
I can not get the nzmap.php page to automatically update to navigation/map in the browser?
I did play around with different positions and managed to create an eternal loop!
Any help or guidance will be most appreciated