Skip to content
Snippets Groups Projects
Commit e82c17b3 authored by ale's avatar ale
Browse files

Slight tweak to prevent path-adding to php files

parent cb1c745b
No related branches found
No related tags found
1 merge request!54Harden htaccess for /wp-includes/ direct access
Pipeline #31495 passed
This commit is part of merge request !54. Comments created here will be created in the context of that merge request.
...@@ -31,7 +31,7 @@ RewriteRule ^resource/[^/]+/download/(.*)$ wp-includes/ms-files.php?file=2010/08 ...@@ -31,7 +31,7 @@ RewriteRule ^resource/[^/]+/download/(.*)$ wp-includes/ms-files.php?file=2010/08
RewriteRule ^wp-admin/includes/ - [F,L] RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=2] RewriteRule !^wp-includes/ - [S=2]
RewriteCond $0 !^wp-includes/ms-files\.php$ RewriteCond $0 !^wp-includes/ms-files\.php$
RewriteRule ^wp-includes/.+\.php$ - [F,L] RewriteRule ^wp-includes/.+\.php(/|$) - [F,L]
RewriteRule ^wp-includes/theme-compat/ - [F,L] RewriteRule ^wp-includes/theme-compat/ - [F,L]
# BEGIN WPSuperCache # BEGIN WPSuperCache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment