WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

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
share|improve this answer
Thanks for keeping this site and your question constructive by posting your own solution. +1 – Pieter Goosen May 25 '14 at 6:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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