why do you need the .htaccess file. i don't need one and i have done the samething displaying games with an game id. it here: www.vcgames.net
kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194
Whatever link a user uses to go to "mysite.com?act=games&task=play" why not just have that link point to "mysite.com/games/play.php?game=###"
Seems like you might be unnecessarily complicating a simple task.
I mean, why even call mysite.com when that is not the page you are looking for.
Can you show us your code?
HazardTW
Junior Poster in Training
71 posts since Sep 2007
Reputation Points: 37
Solved Threads: 3
If you use mod_rewrite, why don't you use it all the way???
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([0-9]+)/$ index.php?act=$1&task=$2&game=$3
or
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([0-9]+).html$ index.php?act=$1&task=$2&game=$3
That would be:
mysite.com/games/play/534/
or
mysite.com/games/play/534.html
or whatever other variation of that you want ;)
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7
Well I think it kind of make no sense of using both methods in the same url:
if you like query strings, stick to them - index.php?act=games&task=play&game=534
otherwise, if you like or want to use mod_rewrite, than stick to mod_rewrite - mysite.com/games/play/534.html
Do it the way you want or like, but don't mix them ;)
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7