Forums

Paged URLs (/page/# and ?paged=#) not working on permalinks (1 post)

  1. sliceofpie
    Member
    Posted 11 months ago #

    On my WordPress, [permalink]/page/# and [permalink]/?paged=# are redirecting the url to [permalink]. So if you type in myblog.com/post-title/page/2 , the url changes to myblog.com/post-title

    - [permalink]/# and [permalink]/?page=# ARE working as expected with posts
    - Only happens with posts (not pages)
    - No problem with categories, front page, etc.

    I have tried the method of deleting .htaccess and updating the permalink option in WordPress. I've turned off WP Super Cache. I've even made a copy of the site on my local drive to try to fix it -- but when I did, it worked fine locally! (Also just realized this is the same scenario with another WP I made -- where the [permalink]/page/# links are working with posts locally with but not online.)

    Here is my .htaccess file (seems pretty standard?):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    However, my local copy is creating an .htaccess file without the "RewriteEngine On" and "RewriteBase /" lines, but deleting these from my site online causes the permalinks to break.

    Thanks for any advice you might have!

Reply

You must log in to post.

About this Topic