Paul Kiddie

301 Redirects with Plesk

January 08, 2009

I’ve just recently signed up with a new web host (Weycrest) to take over the hosting of my blog, and they utilise the Plesk control panel for administering the thing. I was with Dreamhost before and I had created several sub-domains of paulkiddie.com that act to redirect to another page but I couldnt for the life of me find any option within the manage sub-domain settings to do a redirect from the sub-domain to another website.

I found a great article at http://dannynsl.blogspot.com/2007/08/redirecting-in-plesk.html, which explains how can do just that, and it’s pretty simple! You just create a .htaccess file and put it in the httpdocs folder of the subdomain, that looks something like this:

RewriteEngine on RewriteCond %{SERVER_NAME} subdomain_address_here [OR] RewriteCond %{SERVER_NAME} www.subdomain_address_here RewriteRule ^.*$ redirect_address_here [R=301]

Just fill in the entries for

subdomain_address_here

and

redirect_address_here

and you’re good to go! Got a 301 redirect going, so I’m happy!


👋 I'm Paul Kiddie, a software engineer working in London. I'm currently working as a Principal Engineer at trainline.