Created
December 10, 2012 23:39
-
-
Save kristarella/4254373 to your computer and use it in GitHub Desktop.
htaccess: remove .html without breaking stuff in WP dashboard
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
# strip '.html' off any requests except in the dashboard | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/?(wp-admin|wp-includes)/(.*)$ | |
RewriteRule ^(.*)\.html$ http://example.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment