-
-
Hello,
I need help with the urls. It’s difficult to explain what is going on, so I’m gonna explain exactly what I’ve done and what happens after it:
1. Those are the steps i’ve followed:
I’ve build a very simple folie wordpress website. The webpage has only 3 pages inside.
To keep it secret until it was ended, I installed wordpress (and I build it) in an inside folder that I called “public_html”. So the url to get to the content while building was http://www.samplewebsite.com/public_html
Finally the website is able to be published, and I migrated it; I moved all the files to the new url (from http://www.samplewebsite.com/public_html to http://www.samplewebsite.com) and I changed the whole url links using an automatic .php file. I also checked the automatic links from wordpress to make sure the main menu would still working. Finally, I erased the folder “public_html” that I had created at the very beginning.
2. This is what happens after those steps I’ve followed:
Once the url migration is done, the menu works perfectly. Everything works but one very important thing; the page that I set to be the home of the site does not work.
Let’s call it page1. If I change it, and set another page (page2) to be the home page, it is perfectly possible to get to the page1 going through menu but then it is not possible to get to the page2.
It looks like it has something to do with the <span style=”text-decoration: underline;”>urls used to set the home</span> page because:
- When I write down my url (http://www.samplewebsite.com) at the navigator, it automatically goes to samplewebsite.com/public_html.
- If I write down samplewebsite.com/page2 (the one set as the home page) then it still changes automatically and goes to samplewebsite.com/public_html.
- If I change the the home page setting page3 as home, and I write down samplewebsite.com/page2 at the navigator then it goes to page2 but now page3 is the one not working: Again, when writing samplewebsite.com/page3, it automatically goes to samplewebsite.com/public_html.
All this means that the first page people get when they visit my page is a “not fount” error. Does anyone know what should I do to solve it? :S
- This topic was modified 6 years, 11 months ago by albaparera.
- This topic was modified 6 years, 11 months ago by albaparera.
- This topic was modified 6 years, 11 months ago by albaparera.
-
Hello,
As you already wrote, this is a redirection problem. I suggest you contact your host and check out that there are no redirect rules set up in your server. You may want to double check the links in your database as some may be pointing still to the old installation.
Best regards!
-
You must be logged in to reply to this topic.