• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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