Magento – Domain extensions are not allowed / TLD

PictureMagento automatically checks when saving a declared as an e-mail address field, whether it can be a mail address. Here are the domain extensions with the (Magento) known TLD matched.

In recent years, several new entries have come onto the market, so that one with .com, .of, .org usw. long gone manages. TLD as .one or .photos grow over time.

but since there is no TLD synchronization Magento unlike currencies, you have here from time to time to lend a hand himself.

The secret lies in the Hostname.php, which can be found in the folder / public_html / lib / Zend / Validate. Here is both defined how long may be a TLD

// First check TLD
$matches = array();
if (preg_match('/([^.]{2,10})$/i', end($domainParts), $matches) ||

and the allowed extensions themselves. It is easiest if the Hostname.php latest from the (matching) takes version of Magento and replaces the old (rename this, to still recover them if need be).

Even then, however, it may be, that the TLD will not be accepted. Then you have to look in the lines above, whether the desired extension is also called. With us e.g missing. the ending .one. Having them in the list between “if” and “ong” had set, then accepted Magento this new TLD also.

Used in Magento Version 1.9 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *