Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: (OT) mod_rewrite anyone?

by mrc (Sexton)
on Sep 26, 2009 at 14:19 UTC ( #797692=note: print w/ replies, xml ) Need Help??


in reply to Re: (OT) mod_rewrite anyone?
in thread (OT) mod_rewrite anyone?

...and the second entry Canonical Hostnames explains how you would achieve this.
Yes but I need a wildcard. I tried something like

RewriteCond %{HTTP_HOST} !^www\.%1 [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/?(.*) http://www.%1/$1 [L,R,NE]
but not working. These rules are so hard :(


Comment on Re^2: (OT) mod_rewrite anyone?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://797692]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (18)
As of 2014-08-29 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (282 votes), past polls