-
-
Save MassimoDIFA/afe0fbc081de5d4316e5 to your computer and use it in GitHub Desktop.
wp-fra
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
<files wp-config.php> | |
order allow,deny | |
deny from all | |
</files> | |
<IfModule pagespeed_module> | |
ModPagespeed off | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /wordpress-base/ | |
# force url to lowercase if upper case is found | |
RewriteCond %{REQUEST_URI} [A-Z] | |
# ensure it is not a file on the drive first | |
RewriteCond %{REQUEST_FILENAME} !-s | |
RewriteRule (?=([^\/])*(\.htm|\.html|\.jpg))(.*) rewrite-strtolower.php?rewrite-strtolower-url=$3 [QSA,L] | |
RewriteRule ^wp-admin/includes/ - [F,L] | |
RewriteRule !^wp-includes/ - [S=3] | |
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] | |
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] | |
RewriteRule ^wp-includes/theme-compat/ - [F,L] | |
RewriteCond %{THE_REQUEST} (\.htm|\.html) | |
RewriteRule ^(.*)(\.htm|\.html)$ /wordpress-base/$1 [R=301,L] | |
RewriteCond %{REQUEST_URI} !^(/wordpress-base/|/wordpress-base/images/) | |
RewriteRule ^(.*\.jpg)$ /wordpress-base/wp-content/uploads/2016/02/$1 [R=301,L] | |
RewriteRule ^(?:wp-11-15/)?(.*/)?([^\s\x20/]*)[\s\x20]+([^/]*)$ /wordpress-base/$1$2-$3 [R=301,L,NE] | |
</IfModule> | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /wordpress-base/ | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /wordpress-base/index.php [L] | |
</IfModule> | |
# END WordPress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment