Answer the question
In order to leave comments, you need to log in
How, depending on the user's country, to open different pages without a visible redirect?
At the moment, it is implemented by a redirect - depending on the user's country, it redirects to a specific url.
The problem is that depending on the country, the user needs to show different pages, but on the same url.
For example,
RewriteCond %{REMOTE_ADDR} !93.143.174.0
RewriteRule ^index.php$ index2.php [L,QSA]
Answer the question
In order to leave comments, you need to log in
You can't rely on IP like that.
I can live in Russia, surf through VPN. It will show you that I am from Germany.
for good - a template engine that collects a page from the lang / IP parameter of
course, MVC, routing, the framework
can also be perverted by nginx directives, but it’s more confusing and less manageable
, and Google doesn’t care for this
you can do this:
index.php - select the Russian version (with a link to /ru/index.php, for example) and select english version (with a link to /en/index.php, for example). It is possible to play around with the definition over time and let them go where they need to
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question