Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite / RewriteRule query

Status
Not open for further replies.

tom1681

Programmer
Sep 4, 2002
40
GB
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!
 
Further to my above post, it may infact seem that neither work. Or the game one only sometimes works...

So how can I do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top