Caleb, no worries. I just like regex :-)

Chad, I'd suggest a condition similar to this:

(?<!www)(\.|^)([a-z0-9]+?\.(com|net|org|ws))

Mind you, this is just pure regex, This was just written off-hand and I
haven't tested it in Apache but I'm pretty sure it should work similarly if
you're running Apache 2.2. It should match domain.com, sub.domain.com, etc.
but *not* www.domain.com.


On Wed, Jan 19, 2011 at 10:59 AM, Caleb Call <[email protected]> wrote:

> I just reread his question and see that he wants anything without a
> subdomain...so you are correct.  I was thinking he wanted to redirect
> everything besides certain subdomains.  Whoops!
>
>
>

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to