Forums

Links in pages are all double (9 posts)

  1. a_johnson
    Member
    Posted 2 years ago #

    All of a sudden, my links look like this:

    http://www........../?page_id=14/?page_id=46

    The page ID 14 is on every link and all the page requests go to it instead of the real ID, the second one.

    Any ideas?

  2. songdogtech
    Member
    Posted 2 years ago #

    Try resetting permalinks to default (in Dashboard/Settings/Permalinks) and make sure your changes get saved to htaccess. If that doesn't work, post your site URL.

  3. a_johnson
    Member
    Posted 2 years ago #

    I deduced that the problem might be with a corrupt php file in the admin directory. I just uploaded all the files to see. This proved a mistake.

    The admin access went away with some error or another so I just deleted everything and am starting over. I'm looking at it like this, the original iteration was a test to see if I had twp WP brain cells to rub together. I might, but just barely.

    Your comment about htaccess bothers me though, as far as I know, I don't have one. I did create one for my allow/deny rules but I don't think it overwrote anything that was already there.

    Do you know for certain that WP comes with an htaccess natively?

  4. songdogtech
    Member
    Posted 2 years ago #

    WP uses htaccess for anything other than standard URLs. After you reinstall, go to Settings/Permalinks and see the capabilities. If you go to any other permalink structure, you need a htaccess with the correct rewrite rules.

    Maybe htaccess got whacked in the beginning from using the wrong encoding in your text editor?

  5. a_johnson
    Member
    Posted 2 years ago #

    Yea, anything is possible considering how hamfisted I am with this. I'm not going to touch the permalinks and just add the pages and make the changes checking one at a time.

    If the problem shows back up, I'll repost. Thank you for taking the time to reply.

  6. a_johnson
    Member
    Posted 2 years ago #

    I did another site this past weekend and now this other site is doing this too. I have not touched permalinks and the htaccess has not changed.

    Does anyone know exactly what is causing this and what the cure is? This is on 2.8.5.

  7. a_johnson
    Member
    Posted 2 years ago #

    I figured it out. There is a problem with the documentation. On WP sites where you are using WP as a CMS as well as a blog, you create a page called Blog then WP uses that to house the blog.

    However, you can't actually tell WP what page it is. On the Settings > General page, I was adding the page ID of the Blog page. It just needs to be the name of the web site. So, http://somesite.com/?page_id=3 is wrong, http://somesite.com is correct.

    I have no idea how WP knows where the blog is, but it does.

  8. MichaelH
    Volunteer
    Posted 2 years ago #

    Putting something like http://somesite.com/?page_id=3 in your Blog or WordPress address would be a problem.

    Review How can I have a static front page and posts display on a page called Blog?

  9. a_johnson
    Member
    Posted 2 years ago #

    Yup, there it is for all to see. :)

    I think someone should write a "do these 30 things" type FAQ for those like me who get bored quickly. The technical explanations are great because they lay everything out but if the new user doesn't have a frame of reference or a suitable background then it is glossed over.

    Maybe I'll write it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.