my url look like this
- Code: Select all
http://www.mydomain.com/game.php?f=580&a=hello%world
is possible to change to
- Code: Select all
http://www.mydomain.com/game/580/hello-world
580 is a unique id number (pull from database)
Thanks advance
p.s.
this is what i have in my htacess
- Code: Select all
AddType x-mapp-php5 .php
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} ^(.*&)?f= [NC]
RewriteCond %{HTTP_REFERER} !^(http://(www\.)?mydomain\.com(/.*)?)?$ [NC]
RewriteRule ^game\.php$ - [NC,F,L]
RewriteRule ^([0-9]+)/free_game_([_A-Za-z0-9-]+)\.html$ /file.php?f=$1 [L]
RewriteRule ^([0-9]+)/free_game_([_A-Za-z0-9-]+)\.html$ /game.php?f=$1 [L]
RewriteRule ^([0-9]+)/free_game_([_A-Za-z0-9-]+)/?$ /browse.php?c=$1 [L]
RewriteRule ^([0-9]+)/free_game_([_A-Za-z0-9-]+)/([0-9]+)\.html$ /browse.php?c=$1&page=$3 [L]
RewriteRule ^profile/([0-9]+)/(.*).html /profile.php?u=$1 [L]
RewriteRule ^page/([0-9]+).html /page.php?p=$1 [L]