WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] changing next page navigation permalink

[Resolved] changing next page navigation permalink

  • changing <?php posts_nav_link() ?> permalink
    wordpress version 1.2

    my permalink structure is /archives/%year%/%monthnum%/%day%/%postname%/

    and the rewrite rules that wordpress has generated for it is

    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&day=$3&name=$4&feed=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]

    whenever i try to access the next page of the blog, i get a url like &paged=2 in the address bar
    how can it be made possible that <?php posts_nav_link() ?> generates a link to the next page like /page/2/
    thanks

Viewing 1 replies (of 1 total)
  • If you mean you want to use something like /page/2/ instead of &paged=2, you’ll have to upgrade. This was one of the limitations with custom permalinks in 1.2.x that was dealt with in 1.5.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] changing next page navigation permalink’ is closed to new replies.