c64girl Posted March 15, 2018 Share Posted March 15, 2018 (edited) Hi i have a question about PS 1.6 and GEOIP option build in it. Is there a way to change in some php file that people that are blocked and dont see folder are redirected to some site instead of 503 temporarily overloaded error ? Edit: I found that FrontController.php is responsible and it load this file restricted-country.tpl When i add below code it working but is there a way to use 301 instead of my fix ? <meta http-equiv="REFRESH" content="0;url=http://www.google.pl"> Edited March 15, 2018 by c64girl (see edit history) Link to comment Share on other sites More sharing options...
c64girl Posted March 15, 2018 Author Share Posted March 15, 2018 Ok Found it in FrontController.php add this line that i have highlited /** * Displays 'country restricted' page if user's country is not allowed. */ protected function displayRestrictedCountryPage() { header('HTTP/1.1 503 temporarily overloaded'); Tools::redirect('http://somereeedirect.com'); $this->context->smarty->assign(array( 'shop_name' => $this->context->shop->name, 'favicon_url' => _PS_IMG_.Configuration::get('PS_FAVICON'), 'logo_url' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_LOGO')) )); $this->smartyOutputContent($this->getTemplatePath($this->getThemeDir().'restricted-country.tpl')); exit; } 1 Link to comment Share on other sites More sharing options...
marboo Posted November 6, 2019 Share Posted November 6, 2019 Bless you, @c64girl! Huge problem solved in 1.7.5.1! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now