• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Domain get redirected to Default Plesk Page

sall10

Basic Pleskian
Hello,

I have a domain already secured with LetsEncrypt Certificate, and https is working fine. While I need to test something under http I disabled
under Hosting Settings:

SSL/TLS support
Permanent SEO-safe 301 redirect from HTTP to HTTPS

Certificate: NOT SELECTED

Restarted Apache / Nginx Service

When I try to open the website after, I get redirected to the Webserver Default Page of Plesk, and not to the http version of the Website!

Then I checked under Tools & Settings - IP Addresses - Default Site, the value is set there also to none.

Can someone help me?

Thx


OS
CentOS Linux 7.8.2003 (Core)
Product
Plesk Obsidian
Version 18.0.27 Update #1, last updated on May 25, 2020 07:37 PM
 
Yes, please see here:

# BEGIN BPS WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

# END BPS WordPress
 
No problem appears in your .htaccess file. Can you add the following rule and try again in a different browser?

RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
 
I added the snippet to htaccess.

after checking with a different browser then, I get the warning that the website is not secure, when I proceed then to unsecure
version, I get again redirected to the default webserver page
 
Thank you for the article.

I deleted the index.html under htdocs, restarted apache / nginx checked again that the File was not created again.

when i try to open the domain afterwards Forbidden

You don't have permission to access / on this server.

i checked within the htdocs root folder, there is no htaccess file

within htdocs is additionally folder LetsEncrypt .well-known - acme-challenge and inside the acme-challenge is an htaccess with the content:

<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>

# Require all granted
Satisfy Any
Order Deny,Allow
Allow from all

<FilesMatch "^\.">
# Require all denied
Order Allow,Deny
Deny from all
</FilesMatch>
 
Back
Top