Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Can and how do I use top level domains instead of appending country codes to the URL?

Status Resolved
Add-on / Version Publisher 1.0.15
Severity Trivial
EE Version 2.7

Geoff Lewin

Nov 18, 2013

Hi Support

I’m thinking of using Publisher on a new multilingual site and the client wants to use top level domains and point country specific urls to each siteā€¦ so we are going to use the following:

French-site.fr
Spanish-site.eu
Portuguese.pt
Italian.it
Germany.de

Are there any guidelines on setting this type of installation up using publisher and expression engine?

Thanks
Geoff

#1

BoldMinded (Brian)

Hi, Geoff. This is certainly possible, but you’ll need to write a bit of PHP. In your config.php file you’ll need to do something like this:

switch ($_SERVER['SERVER_NAME']) {
    case 'site.fr': $config['publisher_lang_override'] = 'fr';
    case 'site.eu': $config['publisher_lang_override'] = 'eu';
}
#2

Geoff Lewin

Hi

So just to clarify using this type of approach would enable me to use these domains to show my languages from ee / publisher? www.myfrenchsite.fr www.myspanishsite.es www.mygermansite.de

Would I need to still add an additional segment to the URL for the current language. As this example, www.myspanishsite.es/es/some/page.

Thanks for the advise. Geoff

#3

BoldMinded (Brian)

Yes, that approach will work and you won’t need to add the prefix.

#4

Geoff Lewin

If I was to use the approach above should I add my domains as a Parked or Addon in cPanel?

#5

BoldMinded (Brian)

I don’t know, you will have to figure that one out yourself.

Login to reply