The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to merge a parked domain with the same content as an addon domain in a subdirectory?

Discussion in 'General Discussion' started by Pedro_dd, Feb 18, 2015.

  1. Pedro_dd

    Pedro_dd Registered

    Feb 18, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    My new website is an addon domain in my cPanel. My old website is being retired and is parked on the same cPanel. I'm wanting to get the old website content served by one area of the new website. In effect the old site becomes a part of the new website.

    The new website (the addon domain) is in a subfolder immediately below public_html.

    The redirection works if in cPanel I redirect to a specific file on the new domain name, but I need to handle about 20 pages from the old site. So I tried to redirect the old website to the addon domain subfolder and then using a .HTACCESS file in that space, and 301 redirects, redirect the individual pages to their new destinations. But that didn't work. I've tried various ways of doing it. Looking at the error logs all the different attemps are looking at the public_html directory for the files, which it never finds.

    I assume I could populate the .HTACCESS file in the public_html directory to handle the redirects but it seems to get messy with the main domain* in there aswell and especially with error pages when files are not found.

    Note: The old site is being used simply to keep the domain name and harvest the link juice.

    *A third domain occupies the main domain space and is unrelated to these websites.

    QUESTION: What is the best way to merge the old site, which is now parked, into part of the new website which is the addon domain in the directory public_html/new_site ?
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered making the addon domain name the primary domain name of the account? There are no native options to make this change, but the following post explains how you can do it:

    Moving addon domain name to it's own account

    Note that you would simply modify the original domain name instead of creating the new account.

    Thank you.

Share This Page