• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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