Hi,
You can use the following it will reduce the amount of :
...
while (<>) {
$uri = (split)[0];
$uri =~ s#www\.example\.com/(v\d?|so)#$1.example.com# or
$uri =~ s#www\.example\.com/admin/\?.*#www.example.com/admin/# or
$uri =~ s#www\.example\.com/([wulp])(\d+)/#$2.$1.example.com# or
$u
2007/4/29, Steve Finkelstein <[EMAIL PROTECTED]>:
Perhaps I'm misunderstanding what you're ultimately trying to
accomplish. However, if you're doing what I think you're doing and
you're using Apache, look into mod_rewrite:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
From my knowledg
Perhaps I'm misunderstanding what you're ultimately trying to
accomplish. However, if you're doing what I think you're doing and
you're using Apache, look into mod_rewrite:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
- sf
Jen mlists wrote:
> Hello members,
>
> I wrote a perl script for
On 4/28/07, Jen mlists <[EMAIL PROTECTED]> wrote:
}elsif ($uri =~ m|www\.example\.com/v2/|o) {
$uri =~ s|www\.example\.com/v2/|v2.example.com/|;
The /o modifier isn't desirable there. Also, because a s/// will only
replace if the match part succeeds, you can skip the test:
$uri