Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can domain name have two continuous hyphens

Tags:

regex

dns

I looked up couple of questions on SO, which seem to suggest that two continuous hyphens (e.g. my--website.com) are not allowed but when I search for same domain name on http://www.register.com/index.rcmx, it gladly accepts the name while rejects non valid domain names like my#website.com.
Validation for URL/Domain using Regex? (Rails)

like image 359
RandomQuestion Avatar asked May 09 '13 18:05

RandomQuestion


People also ask

Can a domain name have consecutive hyphens?

A domain name can be up to 63 characters (letters, numbers or combination) long plus the 4 characters used to identify the domain extension (.com, . net, . org). The only symbol character domain names can include is a hyphen (-) although the domain name cannot start or end with a hyphen nor have consecutive hyphens.

How many hyphens are in a domain name?

Just pay attention to put no more than one dash. Therefore, creating a domain name gives priority to one-word-easy-to-remember phrases. After all, everybody has their own experience, and you can decide for yourself, does hyphen in a domain name is good or bad.

Can there be 2 same domain name?

Choosing a domain name is an important business decision. Your domain name must be registered before you can use it. Every domain name is unique-so no two websites can have the same domain name.

Do hyphens affect SEO?

Hyphenated Words and SEO Best Practices Use hyphens where they are grammatically appropriate, and if you have design considerations, know that you're likely safe unless the phrase in question has a different meaning or intent with the hyphen used or not.


1 Answers

It's legal in a domain name, and required for internationalised domain names (IDNs) which when converted from Unicode to ASCII end up prefixed with xn--

like image 141
Alnitak Avatar answered Oct 03 '22 16:10

Alnitak