• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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