Change an second domain's path

Discussion in 'Site & Server Administration' started by powerbfore, May 22, 2012.

  1. #1
    Ok so I have my primary domain, example.com.
    And I'm adding another domain onto to the same host. Now, I want this second domain, powerbfore.com to be directed to example.com/example
    If I set up a redirectory, that wont satisfy because if I were to type in powerbfore.com on my browser, it WILL send me to the path I want it to but it will not stay displayed as "powerbfore.com", instead, it'll go back to "example.com/example"
    So, how can I make it stay displayed as "powerbfore.com" while still being redirected to example.com/example?

    And yes, my host does use cPanel.
     
    powerbfore, May 22, 2012 IP
  2. Cheapvpsoffers

    Cheapvpsoffers Member

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #2
    It can be achieved by changing the document root in the web server. Please ask your host.
     
    Cheapvpsoffers, May 22, 2012 IP
  3. linux7802

    linux7802 Active Member

    Messages:
    110
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3

    You can ask your host to do the following four steps to resolve the issue.

    1st) Ask them to change the document root path for the domain powerbfore.com in the Apache main configuration file and restart the Apache web service.

    2nd) Change the instance from example.com/example to powerbfore.com in the web hosting files present under the example directory as well as in the database but before doing any changes make sure that you have taken a backup to avoid an problem after major changes.

    3rd) After making above changes you can browse example.com/example as a powerbfore.com but you won't be able to access the example.com/example ,it will redirect to the domain powerbfore.com

    4th) If you want to browse the content present under the example directory as a example.com/example and powerbfore.com then simply remove the addon domain powerbfore.com and add it as a parked domain.
     
    linux7802, Jun 2, 2012 IP