Results 1 to 3 of 3
  1. #1

    Mod_rewrite experts?


    I was wondering if a mod_rewrite expert could quickly take a look at this and help me out please.

    RewriteCond %{HTTP_HOST} ^(www\.)?(.+)\.DOMAIN\.TLD$ [NC]
    I'm trying to make the DOMAIN and TLD in bold become wildcarded so they'd work with ANY domain or ANY tld? Such as a wildcard.


  2. #2
    Join Date
    Apr 2004
    How about

    RewriteCond %{HTTP_HOST} ^(www\.)?(.+)\..+\..+$ [NC]

    Same way you do the sub-dmain .+, the dot is any character and the + means one or more of them.

  3. #3
    Ok thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts