AbanteCart Community

eCommerce construction => Installation and Configuration => Configuration => Topic started by: clutchespk on July 24, 2017, 09:15:58 AM

Title: http site not opening in my country
Post by: clutchespk on July 24, 2017, 09:15:58 AM
Hello all,

I have ssl on site and used redirect in the .htaccess file to redirect all http to https. Its working fine in some countries but in my particular country its not working on 90% networks... i am unable to solve the problem even hosting provider could not solve this...

e.g. http:// www dot clutchespk dot com is not working

while https:// www dot clutchespk dot com is working

But currently from germany its working both the ways..means that redirect works..
Title: Re: http site not opening in my country
Post by: abolabo on July 24, 2017, 09:31:25 AM
i tried to open non-secure url and site redirected me to https normally.
have no ideas.
probably someone blocks "Location" http-header. May be provider.
Title: Re: http site not opening in my country
Post by: clutchespk on July 24, 2017, 09:42:00 AM
Which is your country?

Any suggestion what should I do?
Title: Re: http site not opening in my country
Post by: abolabo on July 24, 2017, 09:49:20 AM
i guess it is not related to country. looks like some internet security software blocks it on your PC.
you can check http response header inside browser developer tools (just press F12 key and look into tab Network)
Then click on request and see headers
 you must see this

Code: [Select]
Content-Type "text/html"
Content-Length "1123"
Date "Mon, 24 Jul 2017 13:46:57 GMT"
Accept-Ranges "bytes"
Server "LiteSpeed"
Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
Location "https://clutchespk.com/"
Connection "Keep-Alive"

You need to check Location header. It redirect you browser to new URL
Title: Re: http site not opening in my country
Post by: clutchespk on July 24, 2017, 09:57:04 AM
actually in different cities I have asked my friends to check it ..but its not working for any of my friends in different cities. in my country..one friend even used a proxy of IRELAND but it didnt even worked for him...It only works for them after putting https.  :-\ :'(
Title: Re: http site not opening in my country
Post by: Basara on July 25, 2017, 03:00:16 AM
http:// www dot clutchespk dot com redirect me to https without any problems
Country Thailand

How long time ago you connect your domain to hosting? If you made any changes in DNS or change hosting some countries resolve your DNS correctly only after 1-5 days  :o
Title: Re: http site not opening in my country
Post by: AmitSah on July 26, 2017, 08:04:08 AM
You need to edit .httaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

replace https to http if u have non secure server

or its problem from your hosting provider ask your hosting provider to unblock your ip