Page 1 of 1

index.php?id=135 to 135.html

Posted: Tue Oct 25, 2005 4:22 pm
by elecktricity
I saw this somewere but cant remember were, I know it has to do with a .htaccess or something, does anybody know were I can read up on something like this?

Posted: Tue Oct 25, 2005 4:32 pm
by programmermatt

Posted: Tue Oct 25, 2005 4:33 pm
by Chris Corbyn
It's a module for apache called mod_rewrite.

If you search this site for mod_rewrite you should find something ;)

If your server has apache compiled with mod_rewrite support you'd crete a .htaccess file with this code

Code: Select all

RewriteEngine    On

RewriteRule  (\d+)\.html$  /index.php?id=$1
You'll need some basic regex knowledge too ;)

Posted: Tue Oct 25, 2005 4:35 pm
by elecktricity
thanks for the fast replies ill go read up on it thanks