.htaccess rewrite rule problem
Posted: Wed Apr 28, 2010 9:47 am
Hi
I have a rewrite rule as such
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^about/our-team.html$ http://www.mydomain.co.uk/our-team.php [L]
I have created a link in my menu bar
http://www.mydomain.co.uk/about/our-team.html
Whats happening is that the correct page gets called which is http://www.mydomain.co.uk/our-team.php
but
the browser window shows link http://www.mydomain.co.uk/our-team.php
and not
http://www.mydomain.co.uk/about/our-team.html
so the friendly url is not getting displayed in the browser address bar.
why would this happen. It was all working fine and then my hosting company put me on a new server. They tell me its my htaccess but it worked on the old server for the last 8 months.
anyone had this problem?
I have a rewrite rule as such
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^about/our-team.html$ http://www.mydomain.co.uk/our-team.php [L]
I have created a link in my menu bar
http://www.mydomain.co.uk/about/our-team.html
Whats happening is that the correct page gets called which is http://www.mydomain.co.uk/our-team.php
but
the browser window shows link http://www.mydomain.co.uk/our-team.php
and not
http://www.mydomain.co.uk/about/our-team.html
so the friendly url is not getting displayed in the browser address bar.
why would this happen. It was all working fine and then my hosting company put me on a new server. They tell me its my htaccess but it worked on the old server for the last 8 months.
anyone had this problem?