nureddin Hello, I want to redirect visitors my website to another websites according to their geographical locations based on their IP, while keeping the parameters in the urls. Are there any ideas or any way please? I am using Apache with PHP 7.4 Thanks
nureddin aaPanel_Kern Ok, but I installed the library and configured the necessary settings such as: extension=geoip.so in php.ini Then in .httacces i use RewriteEngine On RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^US$ RewriteRule ^(.*)$ http://us.newdomain.com/$1 [R=301,L] And nothing worked. Although the library version appears and Active in the PHP info.