I know that the order of entries in urlin and urlout must match, but, does it matter what order i put them in within a particular module? IE, will putting the "base" entry first operate as a catch-all that should be put last so that all other matches can be made?
the reason i ask is that i have this:
in .htaccess. however the lines that relate to the fullsized image do not work. in one case, the URL is rewritten, but directs to gallery.html, and in another case, it isn't rewritten at all.
see http://phpnuke.nukedgallery.net/gallery.html click any album. view a photo, then click to view fullsized (either by clicking the image itself, or the full/normal link in the top right).
Audioslaved Elite Nuker
Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
Posted:
Mon Nov 03, 2003 2:38 pm
I have found that putting entries in order from longest URL to shortest is the best way to go in the header.php. I say this because everything gets thrown into an array and seems to get parsed in that order, so if you have your main gallery statement above others that use modules.php?name=gallery, they will more than likely get parsed first. One way around this I have found is to put something like (?!&) at the end of the statement in the header. This should tell it that it should not follow and & sign, meaning it should only convert the URL modules.php?name=gallery and only that. One thing I ran into with the forum tap, was by having the forums.html conversion above everything else, it would rewrite anything that contained modules.php?name=Forums before the other conversions would take place, which happened to be about every URL, moving that conversation to the very bottom eliminated the problem. So should order matter, no, not when we all get spun up on Regular Expressions for PCRE moreso, but as of right now, I would say yes.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum