I have changed wordpress to use permalinks for post names. /%postname%/ so that they are in the form wordpress.com/sample-post. The permalinks work great but it messes up the "next" and "previous" buttons. The default permalink structure works great, but whenever I change the permalinks to any other form, the next button link gets changed to wordpress.com/page/2. which doesn't exist... how do I get the buttons to link to the correct place?

It appears this is a bug on wordpresses side, but I can't find any answers to this problem directly.

  • Is mod_rewrite really enabled?
    – fuxia
    May 25, 2014 at 1:18
  • @toscho Where do I look to find out?
    – Humdinger
    May 25, 2014 at 1:19
  • Remove the <IfModule mod_rewrite.c> and </IfModule> lines from your .htaccess. If your site breaks, mod_rewrite is off. :)
    – fuxia
    May 25, 2014 at 1:24
  • @toscho it appears to be on. Nothing broke when I removed the tags.
    – Humdinger
    May 25, 2014 at 1:26

1 Answer 1


I fixed the problem by editing my .htaccess file. I replaced it with the following.

# BEGIN WordPress

<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
  • Thanks for keeping this site and your question constructive by posting your own solution. +1 May 25, 2014 at 6:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.