devagaurahari
Member
Posted 5 months 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
skapator
Member
Posted 5 months ago #
Are the links working if you disable permalinks?
devagaurahari
Member
Posted 5 months 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.
devagaurahari
Member
Posted 5 months 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...
Try: clear browser cache flush dns.
devagaurahari
Member
Posted 5 months 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...