• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Website redirection not working

Dale Wlaker

New Pleskian
I'm new to Plesk.
Having a challenging time with some website redirection that isn't working. No doubt I've got something fundamentally wrong but here to work out why my redirections aren't working.

Anyway, we've got a bunch of old Wordpress sites on other servers that we're putting to pasture. What we want to do is redirect the domains of the old sites to various pages on our new all encompassing Wordpress site (on Plesk Web Pro). Trouble is, whilst I can redirect old domains to the root of the new site (I used Domain Aliases) I can't redirect a domain to a specific URL on the new site.

Anyway, on Plesk how do I configure Plesk / website redirections to do the following?...

http://oldwebsite1.com > http://newPleskwebsite.com/oldwebsite1page
http://oldwebsite2.com > http://newPleskwebsite.com/oldwebsite2page
http://oldwebsite3.com > http://newPleskwebsite.com/oldwebsite3page

Currently, I've got the oldwebsites set up as Domain Aliases with 301 forwarding and this sort of code in .htaccess of the new site

RewriteCond %{HTTP_HOST} ^oldwebsite1\.com$
RewriteRule ^$ http://newPleskwebsite.com/oldwebsite1page? [L,R=301]

but nothing is happening.

I've got a feeling it's the way I've added Domain alias redirection of the domain on Plesk and it's renaming those those before the website's own redirections try to do their thing. How do I check this and if this is the case, what is the proper way to do this?
 
Have you tried using real redirects instead of domain aliases? A domain alias is a drop-in replacement of the domain name. It will not forward to subdirectories or pages, it will replace the domain name. What you want to do is either creating a real redirect where you can set a target as described in your post or to create a web space in which you use an .htaccess file as you describe in your post.
 
Have you tried using real redirects instead of domain aliases? A domain alias is a drop-in replacement of the domain name. It will not forward to subdirectories or pages, it will replace the domain name. What you want to do is either creating a real redirect where you can set a target as described in your post or to create a web space in which you use an .htaccess file as you describe in your post.

Thank you. As I mentioned. I'm new to Plesk so where would I do that?
 
In the corresponding subscription, please click on "hosting settings", then change the web hosting type.
 
Back
Top