• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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