I am having a biggggg problem with this one and have been trying to fix it for some time. Any help on this will be most appreciated.
I need to change
http://www.example.com/News/Page/2
to
http://www.example.com/news.php?p=2
this is my .htaccess file
- Code: Select all
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteBase /
RewriteRule ^News$ /news.php [NC,L]
RewriteRule ^News/Page/([^/]+)$ /news.php?p=$1 [NC,QSA,L]
It works... however the base url of the site is changing to:
http://www.examples/News/Page/
breaking a few images that have relative links as they are outside the document root - eg "../img.gif"
Any ideas how this can be fixed?
Many thanks in advance...