Welcome! Log In Create A New Profile

Advanced

How to redirect to another web with same domain

Posted by jojo5716 
How to redirect to another web with same domain
February 19, 2016 04:46AM
Hi!

It's possible to have a domain and when a user for a specific country connect to that web, nginx redirect to another web but without change the domain.

for example:

i have tha domain www.example.com and if an users open that web in America they see a youtube.com but the domain still be www.example.com and if users connect from Europa the see the real web.

Regards.
Re: How to redirect to another web with same domain
February 22, 2016 05:51PM
Hi there,

You might want to look into the GeoIP module.

http://nginx.org/en/docs/http/ngx_http_geoip_module.html
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready