Enable and Disable error log file in Plesk server

I have tried to Disable the error log file creation process through htaccess file using below code. But, its displayed “internal server error” in Plesk server. 

php_flag  log_errors off

So, updated settings as like below to Disable and Enable the error log in Plesk server.

If you would like to disable logging you may need to add it to the additional apache/nginx configuration found in
“Plesk >> Domains >> Domain in question >> Apache & nginx Settings >> Additional Apache
Directives”

OR, change the error logging in your PHP settings (“Plesk >> Domains >> Domain in
question >> PHP Settings >> error_reporting” ) to reduce what is logged. I have did through this option.

Please find the below image for more information.

Enable and Disable error log in Plesk server 1
enable-and-disable-error-log-in-plesk-server-1


Enable and Disable error log in Plesk server 2

enable-and-disable-error-log-in-plesk-server-2

Thank you.

HTTP to HTTPS Htaccess redirection for particular URL

We could use the below htaccess code to redirect particular URL from HTTP to HTTPS. 

I the below code, we have added redirection for “donate_wwp.php” payment page from HTTP to HTTPS.

 

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} donate_wwp.php
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

NOTE: I have added it top of the htaccess file.