|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Elite Googler
![]() Join Date: Oct 2006
Location: Ireland
Posts: 1,085
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
Hi,
I've created multilingual web site and now I'm thinking how google will parse this web site. The trick is that sitemap (url's) within the web site does not change when user switches language. I.e: "index.php?page=home" [en] -> changes content and keywords "index.php?page=home" [de] -> changes content and keywords +Links that switch the content: "index.php?lang=en" -> switch content under "home page" "index.php?lang=de" -> switch content under "home page" So, google will be looking at the same page(url), but reading different contents! How is it going to add both pages in database and show them in search results? Or is it going to overwrite contents with the last page it found ([de] in this case) ? Any ideas welcome! Thanks! Last edited by alex-party; 03-13-2007 at 07:48 PM. |
|
|
|
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Elite Googler
![]() Join Date: Oct 2006
Location: Ireland
Posts: 1,085
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
I guess I can reply to myself
After a little thinking, I've decided to use apache mod_rewrite module for splitting up web site into /en/de/ sections and still using single code. This is how .htaccess file looks like: ........................... RewriteEngine on Options +FollowSymlinks RewriteRule ^en/(.*)/?$ index.php?action=$1&lang=en [NC,L] RewriteRule ^ru/(.*)/?$ index.php?action=$1&lang=ru [NC,L] RewriteRule ^de/(.*)/?$ index.php?action=$1&lang=de [NC,L] RewriteRule ^lt/(.*)/?$ index.php?action=$1&lang=lt [NC,L] RewriteRule ^(.*.html)$ index.php?action=$1 [NC,L] RewriteRule ^([^/\.]+)/?$ index.php?action=$1 [L] ........................... Basically if you have web site running on PHP and you're using something like index.php?somepage=id syntax and you want pages look like somedomain.com/en/ , then create .htaccess file with the text above and you'll see how it works. Hope that helps someone. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sitemap not being indexed | raltomonte | Search Engine Optimization Forum | 7 | 02-26-2007 05:44 PM |
| Google participates in Cairo ICT 2007 - Multilingual Search | News Alerts | Google in the News | 0 | 02-04-2007 04:26 AM |
| Google Sitemap | RashidNQH | Search Engine Optimization Forum | 0 | 12-30-2006 04:33 AM |
| Google Sitemap | EmmaP | All About Google | 5 | 11-25-2006 10:28 AM |
| Multilingual Google Access! Virtual Keyboard ! | mrigor | Site Reviews & Suggestions Forum | 7 | 09-14-2005 08:44 AM |