I have run into a little of the gap during my understanding.

I am attempting to enable friendly (or friendly-er) web addresses on the site i develop for: http://thegamesdb.internet

For any more in-depth consider the current format of web addresses we now have, consider the site link I simply gave. However for a fast overview here's a few example web addresses:

http://thegamesdb.internet/?tab=game&id=90&lid=1

http://thegamesdb.internet/?tab=adminstats&statstype=topratedgames

http://thegamesdb.internet/index.php?string=Sonic+the+Hedgehog&searchseriesid=&tab=listseries&function=Search

Does anybody be aware of appropiate code to configure a htaccess file to rewrite these inside a more friendly manner? I have were built with a go myself however it just keeps coming my thoughts and never working... apache mod_rewrite is installed.

In most honesty I'd gladly just be satisfied with "index.php" to become hidden and also the "tab" parameter to become re-written, and a minimum of that'd produce some code to begin with.

Thanks ahead of time,

Alex :)

Here is a skeleton of what you could use/do:

RewriteEngine On

RewriteBase /

# http://thegamesdb.internet/?tab=game&id=90&lid=1 => http://thegamesdb.internet/tab/games/90/1

RewriteRule ^tab/games/([-9]+)/([-9]+)(/?)$ index.php?tab=game&id=$1&lid=$2 [NC,QSA,L]

# http://thegamesdb.internet/?tab=adminstats&statstype=topratedgames => http://thegamesdb.internet/admin/stats/top-ranked-games

RewriteRule ^admin/stats/([a-z0-9-]+)(/?)$ index.php?tab=adminstats&statstype=$1 [NC,QSA,L]

# http://thegamesdb.internet/index.php?string=Sonic+the+Hedgehog&searchseriesid=&tab=listseries&function=Search => http://thegamesdb.internet/list-series/search/Sonic+the+Hedgehog/

RewriteRule ^([a-z0-9-.+ ]+)/search/([a-z0-9-. +]+)(/?)$ index.php?tab=$1&string=$2&searchseriesid=&function=search [NC,QSA,L]

# http://thegamesdb.internet/index.php?string=Sonic+the+Hedgehog&searchseriesid=&tab=listseries&function=Search => http://thegamesdb.internet/list-series/search/Sonic+the+Hedgehog/12

RewriteRule ^([a-z0-9-.+ ]+)/search/([a-z0-9-. +]+)/([-9]+)(/?)$ index.php?tab=$1&string=$2&searchseriesid=$3&function=search [NC,QSA,L]