WordPress.org

Ready to get started?Download WordPress

Forums

permalink nextpage doesn't work (16 posts)

  1. thornomad
    Member
    Posted 8 years ago #

    Hi,

    I am using the permalink structure and it works fine -- however, it isn't working with the <!--nextpage--> command. It works with <!--more-->, however.

    http://www.damonjustisntfunny.com/music/all-right/

    If you scroll down to the bottom will see the modified nextpage link which points to:

    http://www.damonjustisntfunny.com/music/all-right/2/

    However, I get a 404 error.

    I tested it on my other post: http://www.damonjustisntfunny.com/blog/first-post-fears/

    But I have the same problem.

    Thanks!

    Damon

  2. bob58
    Member
    Posted 8 years ago #

    There is a description in the codex at http://codex.wordpress.org/Using_Permalinks

    Take a look at 'Paged Navigation Doesn't Work' at that page.

  3. thornomad
    Member
    Posted 8 years ago #

    Hi -

    I did the suggestions in the codex (emptying the .htaccess file then re-establishing permalinks and deleting it entirely and then recreating it in wordpress and I even deleted it and then edited it manually adding the code that wordpress has generated but it still isn't working. I will include what I am using here in my .htaccess file -- I don't know if it will help or not.

    Does the .htaccess file have to remain editable always to the public in order for this to work ? Thanks.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [S=49]
    RewriteRule ^(about)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^(about)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(about)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(about)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(about)(/[0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^(contribute)/trackback/?$ /index.php?pagename=$1&tb=1 [QSA,L]
    RewriteRule ^(contribute)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(contribute)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pagename=$1&feed=$2 [QSA,L]
    RewriteRule ^(contribute)/page/?([0-9]{1,})/?$ /index.php?pagename=$1&paged=$2 [QSA,L]
    RewriteRule ^(contribute)(/[0-9]+)?/?$ /index.php?pagename=$1&page=$2 [QSA,L]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /index.php?author_name=$1 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})/([0-9]{1,2})/?$ /index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/page/?([0-9]{1,})/?$ /index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^([0-9]{4})/?$ /index.php?year=$1 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/trackback/?$ /index.php?category_name=$1&name=$2&tb=1 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&name=$2&feed=$3 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&name=$2&feed=$3 [QSA,L]
    RewriteRule ^(.+)/([^/]+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&name=$2&paged=$3 [QSA,L]
    RewriteRule ^(.+)/([^/]+)(/[0-9]+)?/?$ /index.php?category_name=$1&name=$2&page=$3 [QSA,L]
    RewriteRule ^(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^(.+)/page/?([0-9]{1,})/?$ /index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^(.+)/?$ /index.php?category_name=$1 [QSA,L]
    </IfModule>

  4. thornomad
    Member
    Posted 8 years ago #

    I did some more snooping to solve the permalink <!--nextpage--> problem and found this post; it didn't apply directly but I thought I would try it.

    I replaced all the (.+) with ([_0-9a-z-]+) on the bottom part of the .htaccess file. And, thus far, it would appear as if everything is working. I have no idea what it does, but I must have covered whatever wasn't working.

    I hope it doesn't screw anything else up; but will find out soon enough.

    D

  5. lodlock
    Member
    Posted 8 years ago #

    I had a similar problem and went through every step located in this guide but nothing worked until I started disabling all of my plugins and found that the nice archive plugin was causing the inability to change pages. Try disabling it (if you even have it or it's active) and see if it fixes your problem.

  6. ebernst
    Member
    Posted 8 years ago #

    I have been having some major problems getting my permalinks to work too. I did get the permalinks to work for regular posts, but it doesn't work for "Pages" that I created. It looks like the links are working fine, but the pages arn't there. Any advise?

    http://www.article-network.com/weblog/

  7. JinKang
    Member
    Posted 8 years ago #

    FYI, I just solved my problem. Similar to above, 'Permalink Redirect plugin' was causing an error in my case.

    Thanks.

  8. michel_tiger
    Member
    Posted 8 years ago #

    After lots of time to find a smart solution on Mac OSX 10.4 (tiger) with only modifying the /etc/httpd/users/USERNAME.conf (here michel) for permalinks in user's sites - here the solution (I don't like to modify main httpd.conf) - (see notes at the end)

    <Directory "/Users/michel/Sites/">
    Options Indexes MultiViews +FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /~michel/wp2
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
    </IfModule>
    </Directory>

    Notes:
    RewriteEngine don't work in the .htaccess = must be written in the USERNAME.conf
    RewriteBase must like /~USERNAME/FOLDEROFWP
    RewriteRule don't contain here a folder (as suggested in wp-admin).

    the url is here to see wp and permalinks - 127.0.0.1/~michel/wp2/

    enjoy!

  9. Ned Zimmerman
    Member
    Posted 7 years ago #

    I am having the same problem as ebernst at my site: http://www.fundyfilm.ca/six/news/

    I'm certain it isn't a plugin problem and I have cleared my .htaccess file a couple times to no effect. Any ideas?

  10. Ned Zimmerman
    Member
    Posted 7 years ago #

    I'm not sure exactly how to go about that...

  11. blakekr
    Member
    Posted 7 years ago #

    <CODE>I replaced all the (.+) with ([_0-9a-z-]+) on the bottom part of the .htaccess file. And, thus far, it would appear as if everything is working. I have no idea what it does, but I must have covered whatever wasn't working. </CODE>

    This works for me as long as there are no parent categories, but anything structured like "domain.com/general/bluewidgets/my_title" breaks, unfortunately. Is there a plugin to create working multiple pages for people using a category/title permalink structure?

  12. blakekr
    Member
    Posted 7 years ago #

    bump? Still hoping hopefully that someone knows how to make "nextpage" work with the /category/postname/ permalink structure.

  13. blakekr
    Member
    Posted 7 years ago #

    I am bumping this one again because I'd give my right arm to make nextpage work with "/category/postname/". Maybe someone has figured it out by now. Help!

  14. Ned Zimmerman
    Member
    Posted 7 years ago #

    Still looking for a fix on this one...

  15. aunk
    Member
    Posted 7 years ago #

    I think the most common hosting have this same problems, and again, I think the solution is what michel_tiger was mentioned.

    RewriteEngine don't work in the .htaccess

    So we must have own .conf for this to getting it work. I wrote the mod_rewrite-ing rule in my httpd.conf, and it works.

  16. whooami
    Member
    Posted 7 years ago #

    I dont know if this will help you but I recently struggled with getting my old custom permalinks working. After quite a bit of trial and error, I discovered a way that works for me.

    Im not sure of the greater implications, so there are no guarantees, but like I said it worked for me:

    http://www.village-idiot.org/archives/2007/01/07/wordpress-custom-permalinks-and-trackback-404-issues/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags