• Resolved gguldens

    (@gguldens)


    All, I have been fighting this for some time now. My permalinks on my personal blog were set to plain for many years. A few months back, I set them to postname, and they quit working. What happened was that the rewrite from the postname to the ?p=<post number> was not taking place. I was searching all over the Internet and finally stumbled upon the answer. I will use <docroot> as the root of my wordpress installation in the upcoming examples.

    So, the URL changed from <docroot>/?p=<post number> to…

    <docroot>/<postname> which was what was not working.

    After much researching I tried inserting “index.php” between the <docroot> and the <postname> like follows:

    <docroot>/index.php/<postname>

    The above caused wordpress to start rewriting my postnames into what WordPress needed to find the posts as /p=<post number>.

    I am posting this to help anyone who has this problem save the time I spent trying to find the answer!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    If "plain" works, then try reading Using_Permalinks before setting a custom permalink structure again.

    Thread Starter gguldens

    (@gguldens)

    I have read that page and many others linked from it.
    I have followed every recommendation.
    When I change the permalinks, I do not get any notification on the screen that the changes cannot be made.
    I have spent weeks trying to figure this out, but the “almost pretty” fix seems to be the one that works.
    The .htaccess file is also not getting updated because the date on it is not changing.

    Thread Starter gguldens

    (@gguldens)

    OK, FINALLY found the problem.
    There was a .htaccess file in a higher directory than where my wordpress installation was.

    In THAT file there was a typo in the RewriteEngine on line.

    Once I fixed that problem, WordPress is now working as expected and using the postname in the permalinks.

    I have no idea how long the error may have been in that file.

    I finally found it by parsing the error_log file and looking closely at the FQPN for the .htaccess file that Apache was complaining about!

    Moderator t-p

    (@t-p)

    Glad you got it sorted ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changed permalinks from plain to postname and they quit working’ is closed to new replies.