Domain Alias

Discussion in 'Apache' started by surferchick, Jan 23, 2012.

  1. #1
    Morning

    I require some assistance with what i think will be a mod rewrite

    Please refer to the example scenario below

    Two websites, two CMS’s
    • www.domain.com.au
    • www.domain.co.uk
    In the near future we could have several more
    The domain www.domain.com does not have anything on it, just used for alias purposes
    The required scenario
    We would like to assign folders of .com to be aliases of the country sites mentioned above
    • www.domain.com/au will be an alias of www.domain.com.au
    • www.domain.com/uk will be an alias of www.domain.co.uk
    So what happens when you alias?
    Let’s take www.domain.com/au as an example
    No matter what page you go to, it shall alias the .com.au website
    This shall be automatic and not manual, as it needs to cater for any new pages created an anytime, such as news
    • www.domain.com/au/shop will be an alias of http://www.domain.com.au/shop
    • www.domain.com/au/faq will be an alias of http://www.domain.com.au/faq
    www.domain.com/au/content/become-a-member will be an alias of http://www.domain.com.au/content/become-a-member
    • www.domain.com/au/news/24/we-are-in-the-news will be an alias of http://www.domain.com.au/news/24/we-are-in-the-news
    • And so on… for all URL’s

    Look forward to hearing from the experts!
    Thanks
    Yvette
     
    surferchick, Jan 23, 2012 IP
  2. Gayantha

    Gayantha Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    create 2 directories as domain.com/uk & domain.com/us & apply some mod_reweites to redirect all requests comes to domain.com/au to the domain domain.com.au
    also do the same for domain.com/uk directory.
     
    Gayantha, Jan 29, 2012 IP