Skip to content

Instantly share code, notes, and snippets.

@cliftonlabrum
Created September 23, 2013 16:46

Revisions

  1. cliftonlabrum created this gist Sep 23, 2013.
    10 changes: 10 additions & 0 deletions redirect_requests.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@

    # 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]