Created
August 8, 2021 18:11
-
-
Save oliveratgithub/d80b640a870c2da763ac7cbe59418552 to your computer and use it in GitHub Desktop.
A very simple .htaccess pretty URL rewrite for Apache2 HTTP Server
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 | |
RewriteRule ^([\w-]+)(?:\.html|/)?$ $1.html [NC,QSA,L] | |
# Makes something like "website.com/abc123" => work by delivering the file "/abc123.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good online .htaccess tester htaccess.madewithlove.be by madewithlove/htaccess.madewithlove.be