Created
May 25, 2021 16:04
-
-
Save tallesairan/1f54de8ce590118e9ffe704c61c8e035 to your computer and use it in GitHub Desktop.
rewrite all html files to php
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 | |
RewriteBase "/" | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)\.html$ $1.php?%{QUERY_STRING} [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^.*$ index.php [L] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ren *.html *.php