Security in .htaccess
-
Hi,
I want to include several things in my .htaccess in order to make things more secure. I am very new to WP and was wondering if this code#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>
placed in .htaccess is the same (or works the same) as this code
# Disable direct access of any *.php files in /wp_includes folder <FilesMatch .php> Order deny,allow Deny from all </FilesMatch>
placed in a separate .htaccess in /wp-includes
Thank you for any help.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Security in .htaccess’ is closed to new replies.