Posted By

jerryvig on 10/19/11


Tagged

http server modrewrite apache rewrite directive


Versions (?)

Simple mod_rewrite example - .htaccess


 / Published in: Apache
 

Maps photos.php?a=03 to photos/Mykonos and photos.php?a=04 to photos/Santorini

  1. RewriteEngine on
  2. RewriteRule ^photos/Mykonos$ photos.php?a=03
  3. RewriteRule ^photos/Santorini$ photos.php?a=04

Report this snippet  

You need to login to post a comment.