Skip to content

Instantly share code, notes, and snippets.

@cliftonlabrum
Created September 23, 2013 16:46
Show Gist options
  • Save cliftonlabrum/6673405 to your computer and use it in GitHub Desktop.
Save cliftonlabrum/6673405 to your computer and use it in GitHub Desktop.
Redirect All Requests with mod_rewrite
# add this if it's not already in your .htaccess file
RewriteEngine on
# the rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://brum.co/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment