Adding Information to URL without having Virtual Directory

Discussion in 'Apache' started by JasonHarper, Sep 22, 2010.

  1. #1
    Hello,

    I'm running some hosted PHP applications on Apache. Customers create CNAME's for their domain names that point to my infrastructure. Once they reach my server, I redirect them to an SSL site on my server that has a different domain name:

    site.companyxyz.com (CNAME) points to ==> server1.hosting.com

    server1.hosting.com redirects to ==> www.hostedapplication.com

    Therefore, what the end user sees in their URL bar is www.hostedapplication.com. I would like to include the original domain name in the URL in a very similar way that Google does with Google Apps:

    mail.google.com/a/yourdomain.com

    So mine would look like: www.hostedapplication.com/a/site.companyxyz.com

    Is there a way to do this without having an /a/site.companyxyz.com virtual directory? I essentially just want it to appear in the URL bar for vanity reasons and has no impact on my application.

    Thank you!!!
    Jason
     
    JasonHarper, Sep 22, 2010 IP