Created
March 10, 2022 05:11
-
-
Save shibbirweb/a5bbbf92b0794839932a1c7ae89e5567 to your computer and use it in GitHub Desktop.
Force load .html page then rewrite extension. Best use for Static HTML Generation
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
| RewriteEngine on | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME}\.html -f | |
| RewriteRule ^(.*)$ $1.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment