• 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.

How do I setup httpd 301 redirect

P

PatO

Guest
A subdomain of mine has moved, and in terms of SEO, I need to setup a 301 redirect.

This was easily achievable with a standard httpd.conf, however with Plesk I am confused as to where to put the following directive. I have placed it into my /var/www/vhosts/domain/conf/vhosts.conf, but it is not working.

Can someone help? Thanks


<VirtualHost 1.2.3.4:80>
ServerName blog.domain.com
ServerAlias www.blog.domain.com
Redirect 301 / http://www.domain.com/
</VirtualHost>
 
Back
Top