Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

guillaumems on "[Plugin: Polylang] Homepage www redirection not working"

$
0
0

Hi,

I have encountered the following issue on 3 or 4 different sites now: if I leave the 'The front page url contains the language code instead of the page name or page id' box unchecked, redirection from www to non-www pages work, except for homepage (in all languages). In other words:

  • www.example.com/products DOES redirect to example.com/products
  • www.example.com/home DOES NOT redirect to example.com/home

This creates issues in terms of SEO regarding duplicate content, at least for the home page, and somehow prevents fonts from loading correctly when using the @font-family technique.

However, if I do check the 'The front page url contains the language code instead of the page name or page id' box, redirection from www to non-www home page works. In other words:

  • www.example.com/products DOES redirect to example.com/products
  • www.example.com/en DOES redirect to example.com/en

This partly solves the problem, as the redirection now works, yet it forces me to use the language slug in the home page URL for languages other than the default one.

I don't know whether it's really an issue with the plugin and/or its settings, or if it can be easily solved by adding a few lines to the .htaccess files, but I'd sure like to know if there's a solution out there.

Thanks!

==========

Site: pvcregional.ca
In order to prevent issue, I have applied the aforementioned modifications to my Polylang settings, so issue is not live.

WP 3.7.1
Polylang 1.4.1
Permalinks -> Post Name

Polylang settings:
-> Languages: Français (default), English
-> Language is set from content
-> Hide URL language information for default language
-> Remove /language/ in pretty permalinks

WordPress settings:
-> I am using a static home page

Other items of interest:
-> .htaccess file is WordPress default. Tried to force redirection of homepage with 301 redirects to no avail.

https://wordpress.org/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>