Created
December 12, 2017 18:08
-
-
Save steverydz/0c1d4718f28f6553195bac0878e79ee7 to your computer and use it in GitHub Desktop.
HTAccess for https, 404 and remove .html
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
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://steverydz.com/$1 [R,L] | |
RewriteCond %{REQUEST_FILENAME}.html -f | |
RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [QSA,L] | |
ErrorDocument 404 /404.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment