• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Need help with re-directs

mdafforn

New Pleskian
I've got a domain (let's say domain.com) that hosts a drupal muti-site installation.

Currently we have domain1.com (the real site) on there with domain2.com, sub.domain2.com, and www.sub.domain2.com as serveraliases defined in vhost.conf (none of the serveraliases are listed as domains in plesk)

Is there a way to re-direct (hopefully perm) all the aliases to domain2.com?

I was thinking 301 re-directs, but it requires an .htaccess, and since these are all serveraliases, they have no directory to put an .htaccess file in.

Also, I need to make sure it's a plesk friendly solution, as most of the apache conf files are re-written everytime you make a change in plesk, and wipe out manual edits.

Thanks for any suggestions!
 
Back
Top