Mod rewrite with two vars but one could be empty

New to mod_rewrite? This is a good place to start.

Mod rewrite with two vars but one could be empty

Postby pawanmehta » Wed Jun 15, 2005 12:06 am

Want to right rule which can do just like this but remember sometimes the second variable named as name can come empty also so want to check that too

Example
Scene1 : example.com/user/name == example.com/index.php?var1=user&var2=name

Scene2 : example.com/user == example.com/index.php?var1=user

One htaccess which can work in both scenes

How do i do that?????????????
:snipersmile:
pawanmehta
 
Posts: 1
Joined: Tue Jun 14, 2005 11:53 pm

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 30 guests

cron