Posted By

lixonic on 08/29/10


Tagged

htaccess


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

lixonic
kubaitis


Multiple variables in a mod_rewrite URL string


 / Published in: Apache
 

  1. RewriteRule ^([a-zA-Z0-9-]+)/?([a-zA-Z0-9-]+)?$ index.php?var1=$1&var2=$2
  2.  
  3.  
  4. Result : www.example.com/[var1.value]/[var2.value]

Report this snippet  

You need to login to post a comment.