• 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

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