Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

Paging issue [Solved]

avatarRhodes, Nick -- on Oct. 9 2007, from West Yorkshire, UK
YACS team (UK)
Solution has been fully integrated

Solution Manager: Bernard

Issue description

If you look at my blog (http://www.ngr78.co.uk/sections/9-blog) and then try to look at the older articles eg 11-20 it breaks.

This is using rewriting rules in htaccess.

Comments

Bernard
avatar
from nearby-an-airport
Associate, 6805 posts

on Oct. 10 2007


This is a bug coming from colliding rewriting rules.

The address http://server/yacs/articles/2 was used to designate article number 2, and the address http://server/yacs/sections/view.php/9/articles/2 to designate the second page of articles in section 9. Obviously for the second link there are two ways to interpret the terminating articles/2, and this is what you are suffering from.

Because of this issue the scheme used to designate an article has been changed to http://server/yacs/article-2, which is completely different from the one used to page in sections.

But to make it work properly, and to fix the bug, you have to edit the file .htaccess to remove or comment out the legacy rewriting rule for articles:

RewriteRule articles/([0-9]+)$  articles/view.php?id=$1


You may have to switch to version 7.10 before enjoying this safe way of referencing items. In the mean time, a workaround is to just stop using rewritten addresses.
NickR
avatar
from West Yorkshire, UK
337 posts

on Oct. 10 2007


Thanks.
-----
Nick

Tags: htaccess

Rate this page
Posted by NickR on Oct. 9 2007, edited by Bernard on Oct. 10 2007, (popular)