• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

SEO: Does plesk do a 301 Redirect?

M

MartinL

Guest
I have www.domain.com setup in Plesk and working fine. I needed to get domain.com (no www.) to also work. I've found that if I just change my DNS server so that there is an A record for WWW.domain.com and domain.com both pointing to Plesk then both work.

My question is, how does the non WWW redirect that Plesk is doing work? Is it using a 301 redirect or something else? Does anyone know if the way it is doing it is SEO friendly or not? I believe that to be SEO friendly, the proper way to redirect a non WWW site is using 301, can anyone confirm if thats what plesk is doing?

If it's not, is there a way of turning this redirect off so I can use a 301 in a HTaccess file?

thanks for the help

Martin
 
Sorry I don't understand what that is showing me.

After looking on loads of different sites it seems like I either need to put an entry in vhost.conf or .htaccess to do a 301 redirect from test.com to www.test.com

so far I have tried several variations on:

RewriteBase /
RewriteCond %{HTTP_HOST} ^http://test.com/$ [NC]
RewriteRule ^(.*)$ http://www.test.com/$1 [R=301,L]

and

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [QSA,R=301,L]

None of which work. The closest I have got is breaking the test.com hosting while the www.test.com part still works, so it seems it is making a difference, maybe I am missing something very simple?

I am really stuck on this, if anyone can offer any suggestions I would really appreciate it
 
Back
Top