WordPress.org

Ready to get started?Download WordPress

Forums

Problem with WP site installed in subdirectory (6 posts)

  1. devagaurahari
    Member
    Posted 2 years ago #

    Hi,

    I've installed WP in a subdirectory under my main domain to develop the site, before I change it a live domain.

    The home page views fine, but any link beyond that default back to the main domain.

    e.g. http://eternalyouthmedia.com/mayapuracademynew/ is fine

    But http://eternalyouthmedia.com/mayapuracademynew/get-involved/tell-a-friend

    shows the main domain of eternalyouthmedia.com

    Can anyone tell me how to fix this? Or is there a better way to develop a WP site on a subfolder during development?

    Thanks in advance.
    David

  2. skapator
    Member
    Posted 2 years ago #

    Are the links working if you disable permalinks?

  3. devagaurahari
    Member
    Posted 2 years ago #

    Thanks for the reply.

    Now I can't login to the site, because every page thats not the home page redirects to the base url page, even though the proper URL is in the browser bar - strange.

    I did change the setting in the database according to these instructions: http://codex.wordpress.org/Changing_The_Site_URL

    because I tried changing the site to the final domain name and it was trying to go there, so I had to manually change that. But I have double checked that and the URLs are both right now in the wp-options table.

  4. devagaurahari
    Member
    Posted 2 years ago #

    I can't login to the site to check - if I type anything except for http://www.eternalyouthmedia.com/mayapuracademynew it defaults back to the main domain of eternalyouthmedia.com

    Therefore I can't even login now...

  5. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Try: clear browser cache flush dns.

  6. devagaurahari
    Member
    Posted 2 years ago #

    Thanks for that.

    But didn't help. Even another computer does the same.

    You can see if you go to:

    eternalyouthmedia.com/mayapuracademynew and click on any link, it goes to the website which is at the root folder of eternalyouthmedia.com

    Strange but true...

Topic Closed

This topic has been closed to new replies.

About this Topic