Created
September 23, 2013 16:46
-
-
Save cliftonlabrum/6673405 to your computer and use it in GitHub Desktop.
Redirect All Requests with mod_rewrite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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