Redirect every url to a page as querystring with .htaccess


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # every call to a page that is not an existing file
  2. # is redirected to another file as querystring
  3. Options +FollowSymlinks
  4. RewriteEngine on
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteRule ^(.*)$ /proxy.php?from=$1 [QSA]

URL: http://www.barattalo.it/2010/05/02/10-htaccess-usefull-tips/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.