Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 06:39:22 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Website Marketing
| |-+ Search Engines and Directories
| | |-+ Search Engine News and Articles (Moderator: Andy)
| | | |-+ French/english site
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: French/english site  (Read 3641 times)
mic_comte
Contributor
Jr. Member
***
Posts: 32



WWW
« on: June 21, 2007, 02:41:49 PM »

 Hi,
My site is in french and in english. To be able to submit to directories without giving the address mysite.com/fr/index.htm (which can be considered as deep link and then refused), I have put a php script at the root of the site to redirect directly the user, depending on the default language of his browser (see below).

The default language is french, but recently I changed it to english when I submit to english directory (so I can read the meta tags easily). Since then, my english index is better ranked in google than the french one.

Do I risk a penalty from Google who could consider that as spamdexing?

Here is my script:

<?php
if ( isset( $_SERVER["HTTP_ACCEPT_LANGUAGE"] ) )
{
   $lang = getenv('HTTP_ACCEPT_LANGUAGE');
   if ( substr ($lang, 0, 2) == 'en' )
   {
      header("Location: http://www.braquedubourbonnais.info/en/index.htm");
   }
   else
   {
      header("Location: http://www.braquedubourbonnais.info/fr/index.htm");
   }
}
else
{
header("Location: http://www.braquedubourbonnais.info/fr/index.htm");
}
?>
Report to moderator   Logged

SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #1 on: September 23, 2007, 03:52:50 PM »

I believe that Google have no reason for doing so, since you don't play with content to get better ranking but to improve browsing experience of your visitors by accommodating language to country they are coming from.
If I have similar task I would do it without worries although would probably use mod rewrite function instead of one suggested in PHP. Something like described here: http://www.gerv.net/hacking/language-selection/

BTW I've just check your site and it seems that it's still ranked well(at least to my eye) so time time have proved that using such redirects aren't harmful.
Report to moderator   Logged

Denis
Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Website Marketing
| |-+ Search Engines and Directories
| | |-+ Search Engine News and Articles (Moderator: Andy)
| | | |-+ French/english site

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!