View Single Post
Old 03-10-2006, 01:46 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
if your server runs apache and supports mod rewrite, then all you need to do is make a file named .htaccess and place it in your web root directory.
Code:
RewriteEngine on
RewriteRule ^cabin/[0-9]+)$ cabin.php?id=$1 [L]
sometimes mod rewrite doesn't like it when you name a directory the same as your script ( i don't know why ) so you may have to rename cabin.php to cabin_rw.php ( or something other than cabin.php )

if you are going to send '05' instead of just '5' , then you may have to modify the var passed in with php as well.
sde is offline   Reply With Quote