lucy24 - 6:27 am on Sep 4, 2013 (gmt 0)
Follow-up: It's possible that you've misunderstood the relationship between target and pattern. The pattern, the part on the left, is what the user (whether human or robot) requests. Your server compares each request against the pattern; if there's a match, it does the stuff on the right. This applies in a general way to any Apache activity that involves evaluating some aspect of the request.
The two targets
each correspond to some URL that the user has requested. But the request can't simply be
There has to be some way for the server to know if the person really wants statePage.php or otherPages.php. If there's no way to tell the URLs apart, you have to either list each group by name, or let a preliminary php script sort them out.
Oh, and: In a redirect, it might be appropriate to use the form
with optional l, especially if you've got a lot of outside sites pointing to the wrong form of your URL. But in a rewrite you can only permit one form. Otherwise you'll have duplicate content in the most literal way (an html version and an htm version of every URL).