Created
January 25, 2014 00:02
-
-
Save omurphy27/ca7043bfdbf0879f63d7 to your computer and use it in GitHub Desktop.
HTAccess redirectmatch 301 - redirecting entire directories.htaccess
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
RedirectMatch 301 ^/nba/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/NBA/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/NCAAB/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/event/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/mlb/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/ncaaf/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/ncaab/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/nfl/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/nhl/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/report/.*$ http://oddsfather.com/ | |
RedirectMatch 301 ^/team/.*$ http://oddsfather.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment