Re: [RESOLVED] mod_rewrite
Regex is still a topic that I'm not entirely confident with, myself. It doesn't help that there are variations to it based on which context you're in. But, for htaccess-flavored regex, I've bookmarked and returned to this page often for a reference. It's got a lot of info and examples.
Re: [RESOLVED] mod_rewrite
Hi neato, for regex tutorials you should see - http://www.regular-expressions.info/
@SambaNeko
Thanks for that solution...
Prior to now, if i encounter such problems, what i do is something similar to below
Code:
RewriteRule ^directory/(.*)/(.*)/$ child.php?parcat=$1&subcat=$2
RewriteRule ^directory/(.*)/$ parent.php?parcat=$1
so it'll always process this
Code:
RewriteRule ^directory/(.*)/(.*)/$ child.php?parcat=$1&subcat=$2
before this
Code:
RewriteRule ^directory/(.*)/$ parent.php?parcat=$1
thanks for that eye opener