One of the HTTP RFC or the URI RFC specifies a complete regular
expression that you can use for processing a HTTP URI. I would suggest
looking there and applying that to your rewrite filter.

On 9/6/06, Nick Wiltshire <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I posted this to the progsig list but didn't get an answer, hopefully someone
> here will know. It seems like it should be easy, but there's obviously
> something I don't know/understand.
>
> What I'm trying to do is use mod_rewrite to grab a certain part of the end of
> a url and turn it into a $_GET in PHP. Something like:
>
> http://www.example.com/some/thing/
> becomes
> http://www.example.com/?var=some/thing
>
> Now, I suspect the slashes may be part of the issue, but I'm not sure.
>
> I've tried various rules and either end up in an infinite loop or get 500
> internal server error.
>
> Any ideas?
>
> Nick
>
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
>


-- 
Regards,
Cade Cairns

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to