View Full Version : Pretty Urls with Mod Rewrite

02-11-2008, 10:56 AM

i'm having trouble making a .htaccess file that will accept up to 10 variables and it doesnt matter if they have content in them or not.

For example if i have sitename.com/param1/param2/ i would like it to translate to

Now if there isnt 10 parameters i dont want it to 404 and i need it to allow any type of chars i will do validation in the script so does anyone know how to do this. How trulia.com formats its urls is exactly what im trying to do


02-11-2008, 12:43 PM
then just write a rule that has 10 sports in it. That website no dbout uses this, because the variables need to be in a specific order to work. So the forst /param/ is always state... and so on