Firstly, this has nothing to do with Perl.
Secondly, if you look at the docs for apache, you will find a link to the URL rewriting guide, and the second entry Canonical Hostnames explains how you would achieve this.
ClintIn reply to Re: (OT) mod_rewrite anyone?
by clinton
in thread (OT) mod_rewrite anyone?
by mrc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |