Link problems after test site move(s)
-
Alright, read a lot of threads, didn’t find this one. Doesn’t mean it wasn’t there somewhere, but I couldn’t find it.
Built out a site for a client that was entirely driven by the blog as the main page. They approved it, we pushed it live.
After we went live, they decided they didn’t want that setup. What they wanted was their old bootstrap index.html page, and then the blog as a subfolder with a link.
So I’ve had to move this site several times and set up a few new AWS test servers. Had quite a bit of trouble getting the home and siteURL variables right, but I’m past that now. But I’ve still got troubles and I’m stuck.
The test site is here:
http://34.239.226.239/Wordpress is installed in /blog/ subfolder.
The link to blog at the top of the page points to:
http://34.239.226.239/blog/index.phpClicking that link works, the blog page loads and displays a it should.
The issue: None of the post links work. Clicking a link takes you back to the root page. For example, the blog posts currently use default permalinks, so the top of the two posts should go to http://34.239.226.239/?p=346. Only that’s not where the posts live. So when it tries to load that page it can’t find anything and just takes you to the site root’s index.html page again.
Wordpress URL is http://34.239.226.239/blog
Site URL is http://34.239.226.239/So what’s up with the permalinks?
So I’ve tried permalink adjustments, and that has mixed results.For example, if I change the permalinks to “Month and Name” and then add the /blog/ subfolder in front using this structure:
http://34.239.226.239blog/%year%/%monthnum%/%postname%/Then I get a really wierd result. Reloading the root index.html and clicking the ‘blog’ link will try to go to /blog/index.php
But then it rewrites to try and load this page, which is a url that doesnt actually exist:
http://34.239.226.239/blog/2017/02/blogepisode-5-return-to-forever/But that was a deleted test post from site development. So in the end what you get is the header (incorrectly styled) and the first post it can find in the database.
So, for now I set permalinks back to ‘plain’.
And that’s where I’m stuck. My client’s been waiting quite awhile and this is really dragging out 🙁
The topic ‘Link problems after test site move(s)’ is closed to new replies.

