Forum Moderators: phranque
RewriteCond %{HTTP_HOST} ^(www\.)?([a-z][a-z0-9\-]+\.[a-z]{2,4}(\.[a-z]{2})?)
The domain in questions has a number followed by a word so something like "6mydomain.com".
RewriteCond %{HTTP_HOST} ^(www\.)?(([a-z0-9][a-z0-9\-]+\.)+(co\.[a-z]{2}¦[a-z]{2,6}))\.?(:[0-9]+)?$
Change the broken pipe "¦" character to a solid pipe character before use; Posting on this forum modifies the pipe characters.
This recoded RewriteCond assumes that you are using only $2 to back-reference the requested hostname and TLD, stripped of any leading "www.". If you were using other back-references to refer to any of the pieces and parts of the requested hostname, they may be broken by the the changes in the parentheses used in this new pattern; Those back-references will need to be adjusted.
Jim
There's a heck of a lot of things that are going to break when TLDs with more than three or four letters become more common.
A lot of email scripts and response forms will reject such email addresses as non-valid for example.
As for the web... it could be "interesting".
RewriteCond %{HTTP_HOST} ^(www\.)?(([a-z0-9][a-z0-9\-[b]]*[a-z0-9][/b]\.)+(co\.[a-z]{2}¦[a-z]{2,6}))\.?(:[0-9]+)?$
Jim