• 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

Resolved Redirect with the HTTP 301 code

Peter Downes

Basic Pleskian
Hi Forum

I mistakenly ticked the Hosting Settings' Redirect with the HTTP 301 code checkbox for a domain alias that i do not wish to redirect to the Primary domain.

I have unchecked it now but the the redirect seems to be in place on my desktop browsers - but weirdly not for my iOS and Android devices.

Is there a way to check if the server has an internal Redirect in place and/or remove it if it has (beyond the 301 code checkbox)?

Pete
 
Hello mate, if you still give problems, check the file nginx.conf of the following path "/var/www/vhosts/system/domain.com/conf" looking for these lines, if they appear delete and restart the nginx service.

if ($host ~* ^www\.domain\.com$) {
rewrite ^(.*)$ https:// domain.com$1 permanent;
}

a hug
 
Last edited:
Back
Top