[newbie] apache rewrite regex

2003-06-11 Thread Frankie
Hi guys I am hoping that on this list is a regex/apache guru... Currently, I have mdk9.0 running mod_perl/apache via virtual named hosts.. works great. I can run mod_perl scripts in either of the following methods: http://mydomain.com/perl/script.pl or

Re: [newbie] apache rewrite regex

2003-06-11 Thread Steven Broos
. means every character * means zero, one or more instances of the previous character. ^ means beginning of the line (or negation in some situations) $ means end of line The part of the regexp between the brackets will be returned as $1 So the first regexp ^(.*\/perl\/.*)$ says: - If a line

Re: [newbie] apache rewrite regex

2003-06-11 Thread Steven Broos
So a wild guess for the string you want to write: ^\/perl\/dl.pl(\/.*)$ http://127.0.0.1:8200/perl/dl.pl$1 But I guess the regexp you wrote first will work to ! Steven forgot some comments. - I don't think the regexp I wrote is 100% correct - Also try: RewriteRule ^.*(\/perl\/.*)$

RE: [newbie] apache rewrite regex

2003-06-11 Thread Frankie
6:08 PM To: [EMAIL PROTECTED] Subject: Re: [newbie] apache rewrite regex . means every character * means zero, one or more instances of the previous character. ^ means beginning of the line (or negation in some situations) $ means end of line The part of the regexp between the brackets