Hi Garvin
I dont properly understand why. The id of the entry has its own place in the url, shouldn't that be discoverable (as the URL-Pattern is known)?
"Pfad zu den Einträgen" is set to archives. I added archives to the front of the url, so it looked like
http://www.onli-blogging.de/index.php?/ ... esden.html. But that didn't solve the issue and also breaks all old link (
http://www.onli-blogging.de/index.php?/ ... laert.html !=
http://www.onli-blogging.de/index.php?/ ... laert.html) - so that's no solution.
The archives-keyword needs another place in the url and the forwarding via .htaccess needs to be done manually?
Edit: Taking my permalink-structure into my testblog. In the index.php is the following pattern:
- Code: Select all
@(([0-9]+)/[0-9a-z\.\_!;,\+\-\%]+\.html)/?@i
which is compared to the url via:
- Code: Select all
preg_match(PAT_PERMALINK, $uri, $matches)
Taking for example:
- Code: Select all
/index.php?/4/100-testeintrag.html
matches [0] becomes:
- Code: Select all
/100-testeintrag.html
and matches[1]:
- Code: Select all
100
Why 100? The regexp isn't selecting the numbers before the -, it is selecting the numbers before the /. Or it is selecting the whole link, depends on what counts as first bracket. I think something is wrong here.
Edit2: Got it. It's the wrong pattern. PAT_COMMENTSUB is the one which gets true before.
- Code: Select all
@/([0-9]+)[_\-][0-9a-z\.\_!;,\+\-\%]*\.html@i
Hm, maybe i can change that...
Edit 3:
If i simply change the order of the if, execute the match against PAT_PERMALINK first, everything seems to work (line 254/255 in index.php). Is there maybe a way to make that less errorprone generally? Probably adding archives/ like it used to be didn't work because even than, preg_match with PAT_COMMENTSUB returned true.
So that's really a bug - is changing the order a proper patch?