• I have two wordpress installs with separate domains that for the most part work fine. They are completely separate sites.

    The first site and domain is found in the root. Site1.com
    The second is installed in a folder, but the addon domain is Site2.com

    My problem is that if I go to Site1.com/site2 … (which is the folder)
    It doesn’t show the content, but it does show a “not found page.”

    Ideally I’d prefer it to redirect to Site2.com

    Furthermore Google has indexed every page of Site1.com/site2/post
    But oddly when you follow the link it is still a not found page, and then even stranger the google cache shows it as the correct Site2.com/post url.

    How do I 100% ensure that nothing of Site2 is associated with Site1?

Viewing 2 replies - 1 through 2 (of 2 total)
  • To be completely sure that site1 and site2 are kept separate, you should really have a separate hosting plan for each. Was there a particular reason why you put site2 inside of site1?

    When you created your addon domain “site2.com” you accepted the suggested directory name “public_html/site2” (or similar), there is no reason to accept and use this default. (Why it is the default is beyond me!)
    So you will need to delete (remove) the addon domain”site2.com”, and the create it again and this time site it in its very own directory which is beside (and not within) the directory used for “site1.com” which is probably “public_html” but possibly something else.
    Having created the new “site2” directory, use your web hosting file manager to MOVE all the files and directories from the original site2 directory to the new one.
    No other changes should be necessary, both your websites should still work.
    Once you are sure the files have been moved I suggest that you rename the original site2 directory, this will make sure that any stale references to it will fail (the other thing you could do is put a redirection in the .htaccess file there).

    Now join google webmaster tools,
    https://www.google.com/webmasters/
    and connect BOTH your websites, I suggest using the google<number>.html method. And request a site rescan.

    Now your websites will not cross link.
    Separate hosting is not required.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Two wordpress installs, one in root, one in folder’ is closed to new replies.