Web Hosting Talk







View Full Version : .htaccess mod_rewrite assistance


jdk
08-11-2006, 12:30 AM
I need a little assistance with my .htaccess file

I am trying to take the following URL and turn it into a SEO url using mod_rewrite and .htaccess

http://www.domain.com/index.php?act=play&id=65

I want it to look something like

http://www.domain.com/game/115/Warthog-Launch.html

ThatScriptGuy
08-11-2006, 10:32 AM
So you want /game/115/Warthog-Launch.html to bring up index.php?act=play&id=65?

If so, that's not really feasable.

HOWEVER, if you want /game/115/Warthog-Launch.html to bring up index.php?act=play&id=115, then we can talk....

Let us know.

jdk
08-11-2006, 10:59 AM
Yes, you can see the site I want to make SEO by going to anytimearcade.com

The links for the games I want to make more SEO, so however it can be done by adding the game name to the URL is what I am looking for.

ThatScriptGuy
08-11-2006, 11:17 AM
RewriteRule game/([0-9])+/.+[.]html index.php?act=play&id=$1

I think that'll do it for you....I'm busy at work ATM so I can't test it...