I use RewriteRules extensivly on a site I developed for someone so each piece of content has it's own virtual page name. One category of content (games) just uses the format games21.html etc.
The site owner has installed a TAF script that tracks hits and as such people are now following links like this to the site: . I need to use RewriteRules to pass the value of ISP to the PHP page the rule points to. In the .htaccess I have this sort of thing:
RewriteRule ^stupidsheep\.html(.*)$ content.php?id=1&$1
RewriteRule ^game(.*)\.html(.*)$ game.php?id=$1&$2
Can anyone tell me why the game one works, and the individually named content file ones don't? Both types of page load up ok, but only the game ones pass the value of isp to the php page. I'm puzzled.
Any pointers gratefully accepted!
The site owner has installed a TAF script that tracks hits and as such people are now following links like this to the site: . I need to use RewriteRules to pass the value of ISP to the PHP page the rule points to. In the .htaccess I have this sort of thing:
RewriteRule ^stupidsheep\.html(.*)$ content.php?id=1&$1
RewriteRule ^game(.*)\.html(.*)$ game.php?id=$1&$2
Can anyone tell me why the game one works, and the individually named content file ones don't? Both types of page load up ok, but only the game ones pass the value of isp to the php page. I'm puzzled.
Any pointers gratefully accepted!