• 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

DNS & Subdomain Issues

spaceout

Basic Pleskian
Here's my problem...

I have a domain.ws setup in Plesk that has just over 900 subdomains.

What I need is for domain.com to point to domain.ws and have all of the subdomains still work. So if someone enters sub.domain.com it will show sub.domain.ws on the Plesk server.

The people in charge of domain.com have created a wildcard DNS entry and pointed *.domain.com to the IP address for domain.ws. However, the subdomains for the domain.ws site aren't showing up. They are just going to the main domain.ws home page.

lol...I hope that makes sense. Any ideas?
 
I wonder if mod_rewrite would work for this.... although I'm not an expert.

In .htaccess, something like:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ([^.]+)\.example.com [NC]
RewriteRule [url]http://%1.example.ws[/url]
Sorry I have little experience with this type of rewrite. I don't even know if you can rewrite to another domain....
 
Back
Top