• I presently have one Category (Upcoming Events) in which I have 5 posts. When I changed from the default permalink to the custom setting with the Permalink Editor, my post links do not work. When I went back to default they worked fine. My page links work fine with the PE, so I’m not sure what is wrong. One of the 5 post links returned a 404 code, but the others just do nothing at all.

Viewing 4 replies - 1 through 4 (of 4 total)
  • When changing permalink structure your .htaccess file should change, at least on Apache web server. WordPress will add some lines. Does that happen?

    Thread Starter Chris Luckett

    (@chris-luckett)

    Yes. I just checked the .htaccess file and it shows the following (copied and pasted from file):
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>

    # END WordPress

    This indicates that your WordPress files is in a subfolder of the web root called wordpress and that your site is still viewed from the root.

    When this is the case the .htaccess file seems to be correct.

    You may try this fix.

    If you just rename it, then it should be recreated when you save your permalink settings. Also heck the file modfication time on the file to verify that it has been written to when you save the permalink settings.

    Thread Starter Chris Luckett

    (@chris-luckett)

    Thanks Knut. I did as you suggested. I also found that I had to put /%pagename%/%postname% in the Custom Structure text box to get both my pages and my posts to work properly, as well as filling in the Page Permalink text box below with the appropriate info. If I put anything in any of the other boxes (category, tag or author) it broke the page links, but I didn’t need those in any event, so all is good.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks to Posts Not Working’ is closed to new replies.