I am trying to do the following:
www.domain.com/play/Pacman
will go to
www.domain.com/play.php?game=Pacman
I want to then on play.php have a variable $game that I can use to search a MySQL database for the gamename and display the appropriate details.
Reading some tutorials I have the following but it is not working for some reason:
Any help? Also, how do I call the $game variable on the play.php? Do I need to do a $thename=$_GET[] ?? htaccess is not one of my strong points and I have been reading tutorials for over an hour without any luck.
www.domain.com/play/Pacman
will go to
www.domain.com/play.php?game=Pacman
I want to then on play.php have a variable $game that I can use to search a MySQL database for the gamename and display the appropriate details.
Reading some tutorials I have the following but it is not working for some reason:
Code:
RewriteEngine on
RewriteRule ^game/([^/]*)\.html$ /play.php?game=$1 [L]
Any help? Also, how do I call the $game variable on the play.php? Do I need to do a $thename=$_GET[] ?? htaccess is not one of my strong points and I have been reading tutorials for over an hour without any luck.
Last edited:




