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 - May 9, 2024


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 Mar 14, 2020 Jaswir Stela
from Glarus, Switzerland

Skills & Expertise Required

Website Development 

Open for hiringApply before - Jul 8, 2024

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

Offer to work on this project closes in 49 days!
Are you interested in this Opportunity?

Apply Now

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.