SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Multilanguage and Location Complexity in International Websites
The ChallengeProblem analysis 	The SolutionGeoIP, Cookies, .htaccess, Proxy websitesLinks/References
The Challenge Content sections of the website different for the available countries  An user from Germany will enter in the German section of the website with content in German language If the user from Germany prefer the content from the UK section  and Polski language, on his return he will enter directly on the UK section of the website with content in Polski Multilingual website
Solutions: GeoIP Geographic Internet Protocol address location GeolP Country - regularly updated database with information about IP addresses issued for those countries $country_code = apache_note(”GEOIP_COUNTRY_CODE”); $country_name = apache_note(GEOIP_COUNTRY_NAME);
Solution: Cookies Used to retain the user preferences for country and language. In case the user will return several times, should not be forced to make the settings again and again. setcookie ("Country", $ country, 0,'/'); setcookie ("Language", $ language, 0,'/');
Solution: .htaccess Can be used to rewrite URLs First case scenario: the visitor is automatically redirected in the related country's section, checked through the IP address of the user with content in the default country's language Second case scenario: the visitor is automatically redirected in the preffered country's section with content in the language choosen by him through cookies
.htaccess - First case RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RO$ RewriteCond %{REQUEST_URI} !^/index.php$ RewriteCond %{HTTP_COOKIE} !^.*Language.*$ [NC] RewriteCond %{HTTP_COOKIE} !^.*Country.*$ [NC] RewriteRule ^(.*)$ /index.php?id=81&L=2 [L] [NC] (no-case) - This makes the test case-insensitive - differences between 'A-Z' and 'a-z' are ignored when is match with the current URL. [L] (last rule) - Stop the rewriting process here and don't apply any more rewrite rules
.htaccess – First case First condition: If the user is in Romania; The second condition: If the user has accessed www.ourdomain.com / index.php; The third condition: If the cookie Language isn't set; The fourth condition: If the cookie Country isn't set; Rewrite rule: If all the conditions are met, the user is redirected to that URL
.htaccess – Second case RewriteCond %{REQUEST_URI} !^/index.php$  RewriteCond %{HTTP_COOKIE} Language=([^;]+) [NC] RewriteRule ^(.*)$ /index.php?L=%1 [NC,C] RewriteCond %{HTTP_COOKIE} Country=([^;]+) [NC] RewriteRule ^(.*)$ /index.php?id=%1%2 [NC,L,QSA] [C] (chained with next rule) - Chains the current rule with the next rule. If a rule matches, then the rule is processed further, but if the rule does not match, then all the following chained rule will not be processed [QSA] (query string append) - Forces the rewriting engine to add a query string part of the existing string, instead of replacing it.
.htaccess – Second case First condition: If the user has accessed www.ourdomain.com / index.php; The second condition: take the value of the cookie Language Rewrite rule: rewrite based on our cookie value The third condition: take the value of the cookie Country Rewrite rule: rewrite based on the values of our cookies Country and Language
Proxy websites Check at the following links: With an IP in Poland: http://proxy.trash.pl/ With an IP Germany: http://www.surf-proxy.de/ With a USA IP: http://open-browser.com/ There are many proxy websites (google-it)
Links/References http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz  http://www.maxmind.com/app/mod_geoip http://www.askapache.com/htaccess/htaccess-fresh.html#modrewrite2 http://corz.org/serv/tricks/htaccess2.php http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
EPOINTWeb Solutions SRL| VAT No RO 13120890|  Office: Str. Dornei No 3, 300393 TIMISOARA, ROMANIA|FAX +40 / 256 / 407 147 Thankyou!

Weitere ähnliche Inhalte

Andere mochten auch

International Website Optimisation - Brighton Digital Festival 2014
International Website Optimisation - Brighton Digital Festival 2014International Website Optimisation - Brighton Digital Festival 2014
International Website Optimisation - Brighton Digital Festival 2014Sarah Carroll
 
7 tips for going international with your website
7 tips for going international with your website7 tips for going international with your website
7 tips for going international with your websiteLingoHub
 
Making your Web Site Accessible and International
Making your Web Site Accessible and International Making your Web Site Accessible and International
Making your Web Site Accessible and International Alex Fenton
 
Doing business in india Report- World Bank Survey
Doing business in india Report- World Bank SurveyDoing business in india Report- World Bank Survey
Doing business in india Report- World Bank SurveyAkash Jauhari
 
Business and Report Writing Skills
Business and Report Writing SkillsBusiness and Report Writing Skills
Business and Report Writing SkillsCharles Cotter, PhD
 
Ritratto Tecnico del progetto Green Site
Ritratto Tecnico del progetto Green SiteRitratto Tecnico del progetto Green Site
Ritratto Tecnico del progetto Green SiteeAmbiente
 
Spoiliation Of Evidence In Tx And Corp Records Retention Policy Article
Spoiliation Of Evidence In Tx And Corp Records Retention Policy   ArticleSpoiliation Of Evidence In Tx And Corp Records Retention Policy   Article
Spoiliation Of Evidence In Tx And Corp Records Retention Policy Articlejrwalker123
 
Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...
Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...
Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...eAmbiente
 
Revisión crítica del Retardo Mental Leve
Revisión crítica del Retardo Mental LeveRevisión crítica del Retardo Mental Leve
Revisión crítica del Retardo Mental LevePatricia Gagliardi
 
IPPC Directive: the Integrated Environmental Authorization (IEA)
IPPC Directive: the Integrated Environmental Authorization (IEA) IPPC Directive: the Integrated Environmental Authorization (IEA)
IPPC Directive: the Integrated Environmental Authorization (IEA) eAmbiente
 
Review Paper Presentation
Review Paper PresentationReview Paper Presentation
Review Paper Presentationhwinzenburg
 
نسخ من بشار مهم
نسخ من بشار مهمنسخ من بشار مهم
نسخ من بشار مهمahmad1990hanoon
 
Twitter miniseminarium maj 2011
Twitter miniseminarium maj 2011Twitter miniseminarium maj 2011
Twitter miniseminarium maj 2011LillemorSR
 
Дрессировка сирийского хомячка
Дрессировка сирийского хомячкаДрессировка сирийского хомячка
Дрессировка сирийского хомячкаlena-nazarova
 
Newsletter 10/12 Porto di Venezia
Newsletter 10/12 Porto di VeneziaNewsletter 10/12 Porto di Venezia
Newsletter 10/12 Porto di VeneziaeAmbiente
 
Demo 03.04.13
Demo 03.04.13Demo 03.04.13
Demo 03.04.13Foxytim2
 
Kroll Spa (Presentazione esempio pratico) - Enrico Pelosin
Kroll Spa (Presentazione esempio pratico) - Enrico PelosinKroll Spa (Presentazione esempio pratico) - Enrico Pelosin
Kroll Spa (Presentazione esempio pratico) - Enrico PelosineAmbiente
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentationtechgajanan
 

Andere mochten auch (20)

International Website Optimisation - Brighton Digital Festival 2014
International Website Optimisation - Brighton Digital Festival 2014International Website Optimisation - Brighton Digital Festival 2014
International Website Optimisation - Brighton Digital Festival 2014
 
7 tips for going international with your website
7 tips for going international with your website7 tips for going international with your website
7 tips for going international with your website
 
Making your Web Site Accessible and International
Making your Web Site Accessible and International Making your Web Site Accessible and International
Making your Web Site Accessible and International
 
Doing business in india Report- World Bank Survey
Doing business in india Report- World Bank SurveyDoing business in india Report- World Bank Survey
Doing business in india Report- World Bank Survey
 
Business and Report Writing Skills
Business and Report Writing SkillsBusiness and Report Writing Skills
Business and Report Writing Skills
 
Ritratto Tecnico del progetto Green Site
Ritratto Tecnico del progetto Green SiteRitratto Tecnico del progetto Green Site
Ritratto Tecnico del progetto Green Site
 
Spoiliation Of Evidence In Tx And Corp Records Retention Policy Article
Spoiliation Of Evidence In Tx And Corp Records Retention Policy   ArticleSpoiliation Of Evidence In Tx And Corp Records Retention Policy   Article
Spoiliation Of Evidence In Tx And Corp Records Retention Policy Article
 
Planeacioncompu3
Planeacioncompu3Planeacioncompu3
Planeacioncompu3
 
Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...
Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...
Città Sostenibile : un’opportunità per riqualificare efficientando verso obie...
 
Revisión crítica del Retardo Mental Leve
Revisión crítica del Retardo Mental LeveRevisión crítica del Retardo Mental Leve
Revisión crítica del Retardo Mental Leve
 
IPPC Directive: the Integrated Environmental Authorization (IEA)
IPPC Directive: the Integrated Environmental Authorization (IEA) IPPC Directive: the Integrated Environmental Authorization (IEA)
IPPC Directive: the Integrated Environmental Authorization (IEA)
 
Review Paper Presentation
Review Paper PresentationReview Paper Presentation
Review Paper Presentation
 
نسخ من بشار مهم
نسخ من بشار مهمنسخ من بشار مهم
نسخ من بشار مهم
 
Twitter miniseminarium maj 2011
Twitter miniseminarium maj 2011Twitter miniseminarium maj 2011
Twitter miniseminarium maj 2011
 
Дрессировка сирийского хомячка
Дрессировка сирийского хомячкаДрессировка сирийского хомячка
Дрессировка сирийского хомячка
 
Newsletter 10/12 Porto di Venezia
Newsletter 10/12 Porto di VeneziaNewsletter 10/12 Porto di Venezia
Newsletter 10/12 Porto di Venezia
 
РИФ 2014, Хакатон
РИФ 2014, ХакатонРИФ 2014, Хакатон
РИФ 2014, Хакатон
 
Demo 03.04.13
Demo 03.04.13Demo 03.04.13
Demo 03.04.13
 
Kroll Spa (Presentazione esempio pratico) - Enrico Pelosin
Kroll Spa (Presentazione esempio pratico) - Enrico PelosinKroll Spa (Presentazione esempio pratico) - Enrico Pelosin
Kroll Spa (Presentazione esempio pratico) - Enrico Pelosin
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
 

Ähnlich wie Multilanguage and Location Complexity in International Websites

intenranional SEO Best practices
intenranional SEO Best practices intenranional SEO Best practices
intenranional SEO Best practices Anton Surov
 
Caching the Uncacheable
Caching the UncacheableCaching the Uncacheable
Caching the Uncacheabledanrot
 
VUG5: Varnish at Opera Software
VUG5: Varnish at Opera SoftwareVUG5: Varnish at Opera Software
VUG5: Varnish at Opera SoftwareCosimo Streppone
 
Clear AppSec Visibility with AppSpider and ThreadFix
 Clear AppSec Visibility with AppSpider and ThreadFix Clear AppSec Visibility with AppSpider and ThreadFix
Clear AppSec Visibility with AppSpider and ThreadFixDenim Group
 
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018Thijs Feryn
 
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018Codemotion
 
June8 presentation
June8 presentationJune8 presentation
June8 presentationnicobn
 
PHP Hypertext Preprocessor
PHP Hypertext PreprocessorPHP Hypertext Preprocessor
PHP Hypertext Preprocessoradeel990
 
Developing cacheable PHP applications - PHPLimburgBE 2018
Developing cacheable PHP applications - PHPLimburgBE 2018Developing cacheable PHP applications - PHPLimburgBE 2018
Developing cacheable PHP applications - PHPLimburgBE 2018Thijs Feryn
 
Developing cacheable PHP applications - Confoo 2018
Developing cacheable PHP applications - Confoo 2018Developing cacheable PHP applications - Confoo 2018
Developing cacheable PHP applications - Confoo 2018Thijs Feryn
 
WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019Anam Ahmed
 
Common Gateway Interface
Common Gateway InterfaceCommon Gateway Interface
Common Gateway InterfaceBalu Masulkar
 
Tips
TipsTips
Tipsmclee
 
Use Xdebug to profile PHP
Use Xdebug to profile PHPUse Xdebug to profile PHP
Use Xdebug to profile PHPSeravo
 
WCRI 2015 I18N L10N
WCRI 2015 I18N L10NWCRI 2015 I18N L10N
WCRI 2015 I18N L10NDave McHale
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATIONkrutitrivedi
 
Under the Covers with the Web
Under the Covers with the WebUnder the Covers with the Web
Under the Covers with the WebTrevor Lohrbeer
 

Ähnlich wie Multilanguage and Location Complexity in International Websites (20)

intenranional SEO Best practices
intenranional SEO Best practices intenranional SEO Best practices
intenranional SEO Best practices
 
Caching the Uncacheable
Caching the UncacheableCaching the Uncacheable
Caching the Uncacheable
 
VUG5: Varnish at Opera Software
VUG5: Varnish at Opera SoftwareVUG5: Varnish at Opera Software
VUG5: Varnish at Opera Software
 
Clear AppSec Visibility with AppSpider and ThreadFix
 Clear AppSec Visibility with AppSpider and ThreadFix Clear AppSec Visibility with AppSpider and ThreadFix
Clear AppSec Visibility with AppSpider and ThreadFix
 
Php
PhpPhp
Php
 
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Codemotion Rome 2018
 
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
Leverage HTTP to deliver cacheable websites - Thijs Feryn - Codemotion Rome 2018
 
June8 presentation
June8 presentationJune8 presentation
June8 presentation
 
PHP Hypertext Preprocessor
PHP Hypertext PreprocessorPHP Hypertext Preprocessor
PHP Hypertext Preprocessor
 
Developing cacheable PHP applications - PHPLimburgBE 2018
Developing cacheable PHP applications - PHPLimburgBE 2018Developing cacheable PHP applications - PHPLimburgBE 2018
Developing cacheable PHP applications - PHPLimburgBE 2018
 
Unit 02: Web Technologies (2/2)
Unit 02: Web Technologies (2/2)Unit 02: Web Technologies (2/2)
Unit 02: Web Technologies (2/2)
 
Developing cacheable PHP applications - Confoo 2018
Developing cacheable PHP applications - Confoo 2018Developing cacheable PHP applications - Confoo 2018
Developing cacheable PHP applications - Confoo 2018
 
WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019WordPress At Scale. WordCamp Dhaka 2019
WordPress At Scale. WordCamp Dhaka 2019
 
Cake php
Cake phpCake php
Cake php
 
Common Gateway Interface
Common Gateway InterfaceCommon Gateway Interface
Common Gateway Interface
 
Tips
TipsTips
Tips
 
Use Xdebug to profile PHP
Use Xdebug to profile PHPUse Xdebug to profile PHP
Use Xdebug to profile PHP
 
WCRI 2015 I18N L10N
WCRI 2015 I18N L10NWCRI 2015 I18N L10N
WCRI 2015 I18N L10N
 
PHP BASIC PRESENTATION
PHP BASIC PRESENTATIONPHP BASIC PRESENTATION
PHP BASIC PRESENTATION
 
Under the Covers with the Web
Under the Covers with the WebUnder the Covers with the Web
Under the Covers with the Web
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Kürzlich hochgeladen (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Multilanguage and Location Complexity in International Websites

  • 1. Multilanguage and Location Complexity in International Websites
  • 2. The ChallengeProblem analysis The SolutionGeoIP, Cookies, .htaccess, Proxy websitesLinks/References
  • 3. The Challenge Content sections of the website different for the available countries An user from Germany will enter in the German section of the website with content in German language If the user from Germany prefer the content from the UK section and Polski language, on his return he will enter directly on the UK section of the website with content in Polski Multilingual website
  • 4. Solutions: GeoIP Geographic Internet Protocol address location GeolP Country - regularly updated database with information about IP addresses issued for those countries $country_code = apache_note(”GEOIP_COUNTRY_CODE”); $country_name = apache_note(GEOIP_COUNTRY_NAME);
  • 5. Solution: Cookies Used to retain the user preferences for country and language. In case the user will return several times, should not be forced to make the settings again and again. setcookie ("Country", $ country, 0,'/'); setcookie ("Language", $ language, 0,'/');
  • 6. Solution: .htaccess Can be used to rewrite URLs First case scenario: the visitor is automatically redirected in the related country's section, checked through the IP address of the user with content in the default country's language Second case scenario: the visitor is automatically redirected in the preffered country's section with content in the language choosen by him through cookies
  • 7. .htaccess - First case RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RO$ RewriteCond %{REQUEST_URI} !^/index.php$ RewriteCond %{HTTP_COOKIE} !^.*Language.*$ [NC] RewriteCond %{HTTP_COOKIE} !^.*Country.*$ [NC] RewriteRule ^(.*)$ /index.php?id=81&L=2 [L] [NC] (no-case) - This makes the test case-insensitive - differences between 'A-Z' and 'a-z' are ignored when is match with the current URL. [L] (last rule) - Stop the rewriting process here and don't apply any more rewrite rules
  • 8. .htaccess – First case First condition: If the user is in Romania; The second condition: If the user has accessed www.ourdomain.com / index.php; The third condition: If the cookie Language isn't set; The fourth condition: If the cookie Country isn't set; Rewrite rule: If all the conditions are met, the user is redirected to that URL
  • 9. .htaccess – Second case RewriteCond %{REQUEST_URI} !^/index.php$ RewriteCond %{HTTP_COOKIE} Language=([^;]+) [NC] RewriteRule ^(.*)$ /index.php?L=%1 [NC,C] RewriteCond %{HTTP_COOKIE} Country=([^;]+) [NC] RewriteRule ^(.*)$ /index.php?id=%1%2 [NC,L,QSA] [C] (chained with next rule) - Chains the current rule with the next rule. If a rule matches, then the rule is processed further, but if the rule does not match, then all the following chained rule will not be processed [QSA] (query string append) - Forces the rewriting engine to add a query string part of the existing string, instead of replacing it.
  • 10. .htaccess – Second case First condition: If the user has accessed www.ourdomain.com / index.php; The second condition: take the value of the cookie Language Rewrite rule: rewrite based on our cookie value The third condition: take the value of the cookie Country Rewrite rule: rewrite based on the values of our cookies Country and Language
  • 11. Proxy websites Check at the following links: With an IP in Poland: http://proxy.trash.pl/ With an IP Germany: http://www.surf-proxy.de/ With a USA IP: http://open-browser.com/ There are many proxy websites (google-it)
  • 12. Links/References http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz http://www.maxmind.com/app/mod_geoip http://www.askapache.com/htaccess/htaccess-fresh.html#modrewrite2 http://corz.org/serv/tricks/htaccess2.php http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
  • 13. EPOINTWeb Solutions SRL| VAT No RO 13120890| Office: Str. Dornei No 3, 300393 TIMISOARA, ROMANIA|FAX +40 / 256 / 407 147 Thankyou!