1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

DNS & Subdomain Issues

Discussion in 'Plesk for Linux - 8.x and Older' started by spaceout, Oct 19, 2006.

  1. spaceout

    spaceout Basic Pleskian

    25
    73%
    Joined:
    Mar 2, 2004
    Messages:
    59
    Likes Received:
    0
    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?
     
  2. dw604

    dw604 Guest

    0
     
    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....
     
Loading...