-Dave- Posted May 11, 2009 Share Posted May 11, 2009 Hey all, i'm wanting some help on a rewrite. Basically, i want to design a rewrite in 1 line that will be generic that will follow the follow syntax: /section/page/action/id/ => section-page.php?theaction=action&theid=id while at the same time working for all sub parts of this, so: /section/page/action/ =>section-page.php?theaction=action /section/page/action/id/ => section-page.php /section/ => section.php My one downfall is regular expressions, just can't seem to grasp them. Any help would be very welcome! Link to comment Share on other sites More sharing options...
Question
-Dave-
Hey all, i'm wanting some help on a rewrite.
Basically, i want to design a rewrite in 1 line that will be generic that will follow the follow syntax:
/section/page/action/id/ => section-page.php?theaction=action&theid=id
while at the same time working for all sub parts of this, so:
/section/page/action/ =>section-page.php?theaction=action
/section/page/action/id/ => section-page.php
/section/ => section.php
My one downfall is regular expressions, just can't seem to grasp them.
Any help would be very welcome!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts