• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved can´t use .htacces for wordpress

jmzbeki

New Pleskian
Hello,

I also have the problem .htaccess daen in Wordpress ordener.

i have the line
<IfModule mod_dtimeout.c>
<Files ~ .php> SetEnvIf Request_URI "admin-ajax.php" DynamicTimeout = 150 </ Files>
</ IfModule>

tried using the converter in plesk. Unfortunately he did not.

And that I wanted for a wordpress used in the .htacces:
#RewriteEngine On
#RewriteCond% {HTTPS} off
#RewriteRule (. *) Https: //% {HTTP_HOST}% {REQUEST_URI} [R = 301, L]
<files wp-config.php>
Order deny, allow
deny from all
</ Files>
<IfModule mod_headers.c>
Header set X-Frame-Options "sameorigin"
#Header always set Strict transport security "max-age = 31536000; includeSubDomains; preload"
</ IfModule>
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode = block"
</ IfModule>
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode = block"
</ IfModule>
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
</ IfModule>
#Force secure cookies (uncomment for HTTPS)
<IfModule mod_headers.c>
Header always edit Set-Cookie (. *) "$ 1; HTTPOnly; Secure
#Header edit Set cookie ^ (. *) $ $ 1; HttpOnly; Secure
</ IfModule>
<Files xmlrpc.php>
Order Deny, Allow
Deny from all
</ Files>
# Do not list directories
<IfModule mod_autoindex.c>
Options index
</ IfModule>
# Protect all readme.txt files from all plugins
<Files readme.txt>
Order allow, deny
Deny from all
</ Files>
# Block the include-only files.
# Do not use in Multisite without reading the note in Codex!
# See: Hardening WordPress « WordPress Codex
<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 / slow /.+ \. Php - [F, L]
RewriteRule ^ wp-includes / theme-compat / - [F, L]
</ IfModule>

then always comes the error 500, after I have inserted this into the wp folder.

Do you have an idea?
 
Back
Top