Title: Polylang
Last modified: August 21, 2016

---

# Polylang

 *  [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/)
 * Dear Polylang/Chouby,
 * (how) is it possible to use your plugin with two different domains like bla.com/
   homepage/ and bla.nl/homepage/ (with wp root residing in /homepage) using the
   custom start page? I always get redirected to default bla.com/homepage/
 * Been having this very same issue with WPML after an update, quit with them and
   now having the same issue with this plugin. Very frustrating but after all polylang
   is free 🙂
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969684)
 * Hi!
 * Polylang does not allow yet to use the same slug for different languages. This
   is a frequent request an may come in the future. But ot very soon.
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969693)
 * So you’re saying:
 * 1. I can only have a custom (theme) home/startpage in the default language?
 * 2. I can’t have different language content here: bla.com/wordpress/ and bla.nl/
   wordpress/? where “/wordpress/” is not a “slug” and just the home directory. 
   There’s really no slug since it’s the home page…
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969699)
 * Sorry. I did not understand that (I thought homepage was a page). I am sure that
   you can use bla.nl and bla.com as startpages (that’s how I test multiple domains).
   It is possible that bla.com/wordpress/ and bla.nl/wordpress/ work too if you 
   enter them as is in Polylang settings. I never tested it.
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969700)
 * It doesn’t work for me, I always get redirected to bla.com/wordpress/ when trying
   to access bla.nl/wordpress/
    What could be causing this? (fresh install, responsive
   theme, all up to date)
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969703)
 * ok I tried it with WP-install on top level. Looks like language per domain is
   not working if wordpress doesn’t reside in the top level. Changed it back to 
   double check and I still get redirected to the default language homepage when
   trying to access bla.nl/wordpress/ :-/
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969704)
 * P.S. language per domain did work on top-level directory…
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969705)
 * Is there any workaround you can think of?
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969707)
 * Played around a bit more. Had this activated:
 * > The front page url contains the language code instead of the page name or page
   > id
 * If I deactivate it, the navigation will work because it will point to the slug
   like bla.com/wordpress/welcome and bla.de/wordpress/willkommen
    which is not 
   so nice structure. Even then the url bla.de/wordpress/ will redirect to bla.com/
   wordpress/ when no slug is entered after the root dir of the wordpress install.
 * Guess I’ll have to restructure my site to get “language per domain” working.
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969755)
 * Hey Choub,
 * can you confirm my issue or is this an error I should look for in my own environment?
   
   Took a quick look at the code, but didn’t find out in time to eventually find
   a fix for this.
 * Thanks in advance!
    Leo
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969771)
 * Hi!
 * Yes. I checked my code and I confirm that currently it can work only with the
   domain name bla.com. bla.com/wordpress will not work.
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969780)
 * Hey Chouby,
 * thanks for the update. Any suggestion where I chould have a look for this? Would
   love to build me a workaround, even if it’s just a static/absolute path.
 * Thank you!
 *  Thread Starter [Leo](https://wordpress.org/support/users/leoleylan/)
 * (@leoleylan)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969803)
 * Dear Choub,
 * do you see any chance of this issue being resolved within the next 1-2 months
   or helping me out with a workaround here?
 * Thank you!
    Leo
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969805)
 * Hi!
 * It depends on how it will be easy to do.
 * Could you try to edit the line 52 in include/links-domain.php and replace
 *     ```
       return ($lang = array_search( (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'], $this->options['domains'] ) ) ? $lang : $this->options['default_lang'];
       ```
   
 * by
 *     ```
       return ($lang = array_search( (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . parse_url($this->home, PHP_URL_PATH), $this->options['domains'] ) ) ? $lang : $this->options['default_lang'];
       ```
   

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Polylang’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [Responsive Theme](https://wordpress.org/support/topic-tag/responsive-theme/)

 * 13 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/polylang-5/#post-4969805)
 * Status: not resolved