• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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