Forums

Redirecting problem with two WP sites, same server, one disappeared (2 posts)

  1. funkisockmunki
    Member
    Posted 1 year ago #

    I developed a new site for an org, in a side directory, so their old site remained visible until I was done. The new WordPress site is at cityfruit.org/newsitetest.

    I followed directions to make cityfruit.org point to this new website directory, so when someone goes to cityfruit.org and surfs around, they don't see the "/newsitetest", even though that is where the files are. (this took me *all* day yesterday to config correctly)

    There is a second blog page - cityfruit.org/fruitstewards/ - that I initially thought was working because after updating the main site I checked the home page and dashboard, which were both working. Dashboard and home page are still accessible and working fully - I can see the plug ins and everything are still working just fine. Unfortunately, I realize now that none of the subpages on this second blog are working. (calendar, groups, etc - all 404)

    I assume that it has something to do with the index.php, .htaccess, or web.config that were added/changed to make /newsitetest point to the main URL. I think that now when it looks for "/fruitstewards/calendar" that it's looking for that page *inside* of the main blog's directory, instead of looking in the /fruitstewards install folder, so it's obviously not finding it. I'm not sure how to correct this.

    Before yesterday, I didn't even know what an .htaccess file was… pretty newb at this, and I really appreciate any tips. The org who I'm building this for is an amazing non-profit delivering fruit to food banks and teaching people to care for fruit trees - good karma if you can help. ;-)

  2. funkisockmunki
    Member
    Posted 1 year ago #

    Update - I don't think it has to do with the .htaccess files.

    I *think* I need the web.config file that is in the root to somehow say

    if the url is cityfruit.org/newsitetest, change the URL to cityfruit.org/ (don't show the site visitor the /newsitetest part)

    BUT if the url is cityfruit.org/fruitstewards, to leave it alone. No Url rewrite.

    I don't know what code would accomplish that… scouring the internet…

Topic Closed

This topic has been closed to new replies.

About this Topic