Created
August 15, 2013 15:28
-
-
Save jawinn/6241766 to your computer and use it in GitHub Desktop.
.htaccess - redirect pages that are not the home page
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
# AUTO 301 REDIRECT PAGES THAT ARE NOT THE HOME PAGE | |
RewriteCond %{REQUEST_URI} !^/index.php$ [OR] | |
RewriteCond %{REQUEST_URI} !^/$ | |
RewriteRule ^(.*)$ http://www.YOURDOMAIN.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment