Jump to content

GEOIP Redirect instead 503

Recommended Posts

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 ?


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 by c64girl (see edit history)

Share this post

Link to post
Share on other sites

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');
            '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'))

  • Like 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More