# Define additional domains for WPML

**URL:** <https://community.localwp.com/t/define-additional-domains-for-wpml/783>\
**Category:** Feature requests\
**Created:** [February 17, 2017, 8:48am UTC](https://community.localwp.com/t/define-additional-domains-for-wpml/783 "2017-02-17T08:48:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![misamee](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/misamee/32/4483_2.png) [@misamee](https://community.localwp.com/u/misamee)\
**Post date:** [February 17, 2017, 8:48am UTC](https://community.localwp.com/t/define-additional-domains-for-wpml/783/1 "2017-02-17T08:48:14Z")

</div>

I have WPML installed as multisite (subfolders) and I want to use the experimental feature of having languages in domains.

So, for instance:

- the site is **mysite.dev**
- the secondary site is **site1.mysite.dev**
- I’ve installed WPML and enabled it in **site1.mysite.dev**
- Primary language is **English** , the secondary language is **Italian**

Now, I want to setup language in domains.  
This requires enabling sunrise and adding a sunrise.php to wp-content, which I have done and by the way, is not quire related to this post.

I tell WPML that I want to use languages in domains and that the domain for Italian is **[site1.mysite.it](http://site1.mysite.it)**, which I can do.

However, as expected, when opening the new URL, I get a non resolved name HTTP error.  
I’ve added the domain to the hosts file, using the same IP of the original one, but now I get redirected to the original one, which is not what I want.

Can someone please help?

What should I modify in order to let Local understand that the new domain must not be redirected, but used as a “alias” of the original domain?

Thanks.
