|
-
Jul 3rd, 2009, 10:48 PM
#1
Thread Starter
Lively Member
[RESOLVED] mod_rewrite
Heyas, so I'm attempting to teach myself mod_rewrite in htaccess. I've been attempting to create a url rewrite like WP uses, but with just Parent/Child. So far I have:
Code:
RewriteRule ^directory/(.*)/$ parent.php?parcat=$1
RewriteRule ^directory/(.*)/(.*)/$ child.php?parcat=$1&subcat=$2
The parent works, but whenever I attempt to call the sub (child), it attempts to use parent instead.
I've tried multiple ways including changing all names, setting different virtual dir's, setting the regex to [A-Za-z] (There's no numbers, so [0-9] wouldn't need to be added), and calling them both through the same page. All to no avail *sigh*...
Any help would be greatly appreciated.
Thanks in advance.
Please use the search function prior to posting a question and see if someone's already answered it.
-If I helped you, please rate me, as I'd do the same for you =)
-Remember to select the Resolved option for your post when you've gotten the answers you need.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|