mod_rewrite to redirect to a Directory for a search

Discussion in 'Apache' started by Sarao, Sep 11, 2008.

  1. #1
    I have two websites hosting on a single account. This account is Godaddy Economy Hosting Plan. In which you can host as much domain as you want but only to the root directory and cannot redirect a domain to a particular directory.

    Like if Primary domain is abc.com and the second is xyz.com, the xyz.com will be shwoing the root files of abc.com

    I want to use mod_rewrite to redirect my xyz.com domain to a directory named xyz.

    Is it possible? Like if someone goes for abc.com, it should display the root content and if anyone goes to xyz.com, it gets redicted to directory xyz?
     
    Sarao, Sep 11, 2008 IP