I have multi languages set up and they work fine.
The thing is that it doesn't show in the url
For example the link will be zen/en/ but on the browser bar it will revert to zen/
The correct language still comes up but the displayed url is not the same as the link
Is this how it is supposed to be?
I have english and slovak
and default is HTTP_Accept_language
The languages come up fine but the url is redirected so there is no language prefix.
How can this help search engines if there is no prefix and the 2 language versions are redirected to the same url?
Even with english as default language the url is still redirected. Surely this will be bad for search engines
If not otherwise specified, English is the default language of a Zenphoto site.
if you have a link mydomain/en/album and one mydomain/album the search optimizers will consider that they are multiple links to the same item and will not index them. Since th latter link is always present, we supress the former.
Would you like us to generate a 404 error if someone links using the en prefix? If so please submit a feature request issue. As to the redirection--that is how this feature works, there is no [i]page[/i] with the language in it, so redirection is the only way to get the page to display.
Is your site multi-lingual option set? If not sitemap does not know to create multiple links for each language.
Hi
Thanks for you reply. I thought maybe it would be possible to have mydomain/en/album and mydomain/sk/album.
If it will be just mydomain/album then how can google know that there are 2 seperate pages like one for english and one for slovak?
My site has multi-lingual option on. How should the sitemap display the pages? for example will it show them just as mydomain/en/album and mydomain/sk/album or just mydomain/album?
If the url is the same for both versions of languages then i cant' see how google can know there are 2 different versions.
Also if the sitemap does show both version of languages but they redirect to the same domain would that not be a problem for google?
The only way to insure that the various language versions of your pages are indexed is to use the sitemap. Otherwise the search engines would only discover the pages by trial and error (the same as they would discover the pages without a language specifier.)
The dynamic-locale plugin is required also to have sitemap generate multiple language versions of the urls.
I have dynamic locale plugin enabled with just use flags ticked, seo_locale plugin enabled and sitemap-extended enabled.
mod rewrite ticked plus multi-lingual with 2 languages ticked.
Still no multiple language versions created in the sitemaps :-(
Any other ideas to get this working?
Zenphoto does not keep the language prefix in the url like mydomain.com/en. That is only used for switching. You have to use subdomains if you wish to use static urls for each language.
IF you haven't yet please read this tutorial:
http://www.zenphoto.org/news/multi-lingual-sites
Hi
I have followed that tutorial exactly.
I have just done another install and followed every possible instruction and still the sitemap does not generate multiple language versions of the urls.
I have installed a test here: http://www.dazzy.eu/zenphoto/
sitemaps here: http://www.dazzy.eu/zenphoto/index.php?sitemap
I've been trying every possibility for hours and still can't get it to work.
Thanks for the reply
I have just downloaded and installed zenphoto-2012-12-07-trunk.zip
Still the sitemap does not generate multiple language versions of the urls.
I have a test here http://dazzy.eu/zenphoto-2012-12-07/
sitemaps here: http://dazzy.eu/zenphoto-2012-12-07/index.php?sitemap
I have made a user profile so you can see the settings i have made
user: admin2
password: adminpass
Ah, now I see. This is a missunderstanding. That is a sitemap index file that links to individual sitemaps for the items (albums, images , news, pages). These links were never meant to be multilingual. Look at the the individual sitemaps that contain the multilingual links.
Yes, i have looked at the individual sitemaps. They do not generate multiple language versions such as the one below
http://dazzy.eu/zenphoto-2012-12-07/cache_html/sitemap/sitemap-zenphoto-albums-1.xml
Yes i tryed the current nightly build.
After a lot of trial and error switching off and on several plugins i found that when i switched off the 'security-logger' plugin that the sitemap generated multiple language versions and worked. When i switched the security-logger back on it stopped working. Seems the security-logger plugin is stopping the sitemap working properly