code_junkie

.htaccess - rewriting and then hiding part of the url

Nov 13th, 2011
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. RewriteRule ^products/([A-Za-z0-9-s@]+)/([A-Za-z0-9-s@]+)/?$ /store/products/product.php?prod=$1&src=$2 [L,QSA]
  2.  
  3. <?php
  4. header("Location: http://photojojo.com/store/products/lawnmower/");
  5. ?>
Add Comment
Please, Sign In to add comment