help with sub domain, domain and mod_rewrite

Discussion in 'Apache' started by Marko99, Jun 12, 2008.

  1. #1
    Hi,

    I want to change a subdomain so the user surfing the website will see
    a different URL.


    Let's say that a client has a subdomain on my website www.clientA.mydomain.com


    But he has his own domain and wants that users surfing his site will
    not see the subdomain but rather see his own domain www.clientA.com


    Can this be done using mod rewrite without getting into inner loops? I
    can rewrite the subdomain to the domain itself but tif someone types www.clientA.com I need to redirect it to the subdomain and then I get an endless loop.

    Does anyone knows a solution that will allow me to show the user the www.clientA.com URL while actually retrieving all data from the sub domain? (The sub domain is virtual)

    Thanks
     
    Marko99, Jun 12, 2008 IP
  2. kjuzy

    kjuzy Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If i understanded you, you can addon domain www.clientA.com on your subdomain clientA.yoursite.com it's simple, but correct me if i didn't understand you well :)
     
    kjuzy, Jun 12, 2008 IP
  3. Marko99

    Marko99 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'll try to rephrase it. I have a subdomain clientA.mydomain.com and another domain OtherDomain.com I want that want you go to OtherDomain.com you see the content of the subdomain without knowing you're surfing there.

    Is that what you mean? How can this be done?
     
    Marko99, Jun 13, 2008 IP