amakaram
asked on
rewrite rule wildcard to include "/'s" [slashes]
Is there a rewrite rule available to rewrite the following example:
www.mydomain.com/function/val1/val2/val3/val4/end.html
or
www.mydomain.com/function/val1/val2/val3//end.html
to send to:
thisapp.php?function=/val1 /val2/val3 /val4/
or
thisapp.php?function=/val1 /val2/val3 //
Slashes are normally used for directories, however, I am still getting errors and would like instead of 404, to send what the query is to one function file.
www.mydomain.com/function/val1/val2/val3/val4/end.html
or
www.mydomain.com/function/val1/val2/val3//end.html
to send to:
thisapp.php?function=/val1
or
thisapp.php?function=/val1
Slashes are normally used for directories, however, I am still getting errors and would like instead of 404, to send what the query is to one function file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> I think I should put this at the end of the list?
Depends if You want next rules have original or already modified URI. But it should be safe to put it last.
> After a rewrite rule is found to be true and it executes it, does it continue?
Depends on the [L] flag. I have put the [L] flag, which causes the rewrite engine to stop(next rules are not excuted)
Depends if You want next rules have original or already modified URI. But it should be safe to put it last.
> After a rewrite rule is found to be true and it executes it, does it continue?
Depends on the [L] flag. I have put the [L] flag, which causes the rewrite engine to stop(next rules are not excuted)
ASKER
Excellent - was looking for a "catch-all" instead of bouncing to a 404 page, then looking up the error logs. Works slick! Thanks.
ASKER
Works perfect!
ASKER
I think I should put this at the end of the list?
After a rewrite rule is found to be true and it executes it, does it continue?
ie. if this was at the bottom of the list, it would execute this also, correct?... or does it stop when it executes one?