WordPress.org

Ready to get started?Download WordPress

Forums

Problem with web sitemap pagination and the Permalink Validator plugin (1 post)

  1. luismartin
    Member
    Posted 3 years ago #

    We need to create a web sitemap (in HTML, to make it easier for the users to navigate through the site, I don't mean xml sitemap).

    I've been using a lot of plugins to display HTML sitemaps of our site, some with no pagination (too long scrolls). So we needed one plugin which offered internal pagination of the sitemap.

    However none of them were working when trying to display other pages, next or last.

    We have this line in .htaccess:

    RewriteRule ^sitemap/([0-9]+)/$ index.php?page_id=4&pg=$1 [L]

    This forces the permalink to show the corresponding rewritten page, i.e:
    http://www.mysite.com/sitemap/2/
    would be actually calling this:
    http://www.mysite.com/index.php?page_id=4&pg=2

    There's a WP page with ID = 4 in which there's a call to the sitemap generator plugin, which in turn needs to be passed the var pg in order to know which sitemap page to display.

    We checked the .htaccess rule had no effect until we realized the Permalink Validator plugin was interfering, so after disabling this plugin, the pagination worked smoothly.

    However we need to have something like the Permalink Validator so that any randomly attached request string in the URL is deleted.

    Any suggestion would be greatly appreciated

Topic Closed

This topic has been closed to new replies.

About this Topic