28 lines
908 B
ApacheConf
28 lines
908 B
ApacheConf
SecRuleEngine On
|
|
SecRequestBodyAccess On
|
|
|
|
AddHandler application/x-httpd-php74 php
|
|
# 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 WordPress
|
|
# Dyrektywy zawarte między "BEGIN WordPress" oraz "END WordPress"
|
|
# są generowane dynamicznie i powinny być modyfikowane tylko za pomocą
|
|
# filtrów WordPressa. Zmiany dokonane bezpośrednio tutaj będą nadpisywane.
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
RewriteBase /
|
|
RewriteRule ^index\.php$ - [L]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule . /index.php [L]
|
|
</IfModule> |