I can’t get pagination to work properly when using ‘pretty’ permalink settings.
Let’s say I have a gallery that is split over 4 pages.
Page 1 shows fine. URL is [domain]/[page name]
Page 2 will work, and will give the URL [domain]/[page name]/nggallery/page/2
Page 3 will work, but give the URL [domain]/[page name]/nggallery/page/3?q=/[page name]/nggallery
Page 4 will result in a 404 error, because the URL its creating is [domain]/[page name]/nggallery&q=/[page-name]/page/4.
It doesn’t actually matter what order I try the pages in, the permalinks just seem to get increasingly complicated, until the point where it doesn’t work after the third page.
If I reset my permalink settings back to default, with ugly page names, it works just fine.
I’ve researched the problem as far as I can, and initially it seemed that a fix was simply to reset the permalink settings (save to default, and then save back to pretty permalinks) but this hasn’t made any difference.
I’ve deactivated all other plugins, cleared the cache, and I still get the same problem. I thought initially that the permalink settings in the WordPress SEO plugin might have been conflicting, but the same problem exists when it is deactivated.
Everything is latest version – WP3.9.1, NextGen 2.0.65, and I’m running on a Linode VPS with nginx.
@pplong – Have you tried the Reset Option under Gallery > Other Options and then clearing the image cache under Gallery > Other Options > Miscellaneous *after* refreshing the WordPress Permalinks (switch to default then switch back to your preferred structure)?