Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <files wp-config.php>
- order allow,deny
- deny from all
- </files>
- <Files .htaccess>
- order allow,deny
- deny from all
- </Files>
- # prevent directory browsing
- Options -Indexes
- Order Allow,Deny
- Deny from all
- # Block the include-only files.
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
- 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]
- </IfModule>
- # BEGIN W3TC Browser Cache
- gzip on;
- gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
- # END W3TC Browser Cache
- #BEGIN WP SEO: XML Sitemaps
- rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
- rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
- # END WP SEO: XML Sitemaps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement