Find more Web Development Remote Jobs posted recently Worldwide

Required Website Development freelancer for Write htaccess (or different method) redirects based on HTTP header named “CF-IPCountry” job

Posted at - Jan 24, 2021


Our web store has different sections for different countries.

The website store url is added after the domain name.

For example:

domain.com/us-en
domain.com/ca-en
domain.com/eu-en

We need the htaccess file (or suggest a different method) to direct the visitor to the correct url.
We are on CloudFlare. And Cloudflare passed the IP Geolocation to the HTTP header named "CF-IPCountry"

So the htaccess file needs to be setup as follows.

If country is USA - send visitor to domain.com/us-en/* (append full url)
If country is X (we will need to provide a list of country names) send visitor to domain.com/eu-en
Else, send visitor to domain.com/ca-en

We should also have the ability to exclude an IP address from this so that we can test locally.
It should also be ignored by robots and spiders.

Also be sure that this only happens to the url that the visitor visits. This should not affect images, js, css etc.

For someone that knows what they are doing, this should be simple and quick!

About the recuiterMember since Sep 10, 2017 Daniel Vantine
from Seine-et-Marne, France

Skills & Expertise Required

Website Development 

Candidate shortlisted and hiredHiring open till - Feb 14, 2021

Work from Anywhere
40 hrs / week
Fixed Type
Remote Job
$69.50
Cost

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions


Apply on more work from home jobs posted in Web Development category.