Pages (2): 1 2   
Member
Member
dazzy   06-12-2012, 23:07
#1

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?

Member
Member
sbillard   07-12-2012, 01:17
#2

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

Member
Member
dazzy   07-12-2012, 01:30
#3

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

Member
Member
dazzy   07-12-2012, 01:33
#4

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

Member
Member
sbillard   07-12-2012, 01:53
#5

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.

Member
Member
dazzy   07-12-2012, 02:14
#6

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?

Member
Member
dazzy   07-12-2012, 02:32
#7

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?

Member
Member
sbillard   07-12-2012, 02:52
#8

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.

Member
Member
dazzy   07-12-2012, 03:07
#9

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?

Administrator
Administrator
acrylian   07-12-2012, 13:37
#10

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

Member
Member
dazzy   07-12-2012, 14:40
#11

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.

Member
Member
dazzy   07-12-2012, 23:02
#12

Does anyone know what the problem can be?

Member
Member
sbillard   08-12-2012, 04:47
#13

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.

Member
Member
dazzy   08-12-2012, 12:01
#14

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

Administrator
Administrator
acrylian   08-12-2012, 13:08
#15

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.

Member
Member
dazzy   08-12-2012, 13:29
#16

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

Administrator
Administrator
acrylian   08-12-2012, 13:57
#17

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

Member
Member
dazzy   08-12-2012, 14:22
#18

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

Administrator
Administrator
acrylian   08-12-2012, 16:18
#19

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

Member
Member
sbillard   08-12-2012, 19:36
#20

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.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.