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]


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.