ZenphotoCMS Forum
seo_locale problem - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Translating (https://forum.zenphoto.org/forum-8.html)
+--- Thread: seo_locale problem (/thread-10635.html)

Pages: 1 2


seo_locale problem - dazzy - 06-12-2012

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?




seo_locale problem - sbillard - 07-12-2012

is English your site's default language? For search engine reasons, the links for the default language will not have any language prefix attached.




seo_locale problem - dazzy - 07-12-2012

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




seo_locale problem - dazzy - 07-12-2012

Also i enabled the plugin sitemap-extended and when i make the sitemap it doesn't display the separate language pages at all




seo_locale problem - sbillard - 07-12-2012

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.




seo_locale problem - dazzy - 07-12-2012

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?




seo_locale problem - dazzy - 07-12-2012

Also i have tryed everything I can to create the sitemap with multiple links for each language and still no joy. Am i missing something here?




seo_locale problem - sbillard - 07-12-2012

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.




seo_locale problem - dazzy - 07-12-2012

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?




seo_locale problem - acrylian - 07-12-2012

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




seo_locale problem - dazzy - 07-12-2012

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.




seo_locale problem - dazzy - 07-12-2012

Does anyone know what the problem can be?




seo_locale problem - sbillard - 08-12-2012

All this works correctly, at least with the nightly builds. So the first step would be to install the nightly build and see if you still have issues.




seo_locale problem - dazzy - 08-12-2012

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




seo_locale problem - acrylian - 08-12-2012

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.




seo_locale problem - dazzy - 08-12-2012

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




seo_locale problem - acrylian - 08-12-2012

Try the current nightly build. That works for me (an older one did not, too).




seo_locale problem - dazzy - 08-12-2012

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




seo_locale problem - acrylian - 08-12-2012

I don't understand why that would be involved here but interesting find. Best you open a ticket on the bugtracker.




seo_locale problem - sbillard - 08-12-2012

If that is the case (certainly security logger is not preventing the genration of the site map for me) then there must be some sort of errors generated. So you will need to find and report those errors.