Post by Rainforest » Sat Feb 25, 2017 11:58 pm

Google Search Console has notified me that it will show insecure in chrome on the registration page since it's not SSL.

How do I make the mysite.com/register forced to SSL?

Thank you

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by opencartmart » Sun Feb 26, 2017 2:09 am

You can do force redirect of all non-SSL pages to SSL. It can be done through htaccess like below

Code: Select all

RewriteCond %{SERVER_PORT}  80
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by Rainforest » Sun Feb 26, 2017 2:42 am

Thank you but no that is not a solution.
That would make ALL my pages SSL which is not good practice.
I just want to registration page to be SSL (it really should, especially when transmitting ANY data over the web)

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by uksitebuilder » Sun Feb 26, 2017 4:17 pm

Things have moved on with SSL these days and Google etc actually prefer sites to be fully SSL

They now even give a small ranking incentive for doing so.

However, for your problem, run your page through whynopadlock.com to find out the offending insecure item(s)

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Rainforest » Sun Feb 26, 2017 7:50 pm

Thanks all for your input.
However, I believe I'm being misunderstood.

So, there is no issue with my ssl. If I go to https://mysite.com/register it's fine, there are no insecure items. I can go directly to it now and the SSL is fine.

The registration page is inherently NOT SSL and for some reason, Google Search Console (previously known as Google Webmaster) has alerted me that in Chrome 5whatever version, it will now be shown as insecure in the toolbar.

Since that page is not inherently SSL, I'd like to force it.

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by uksitebuilder » Sun Feb 26, 2017 8:20 pm

It looks like it may be an SEO URLs issue as that register page is not default OC (OC doesn't do SEO URLs for those pages)

I would think that the controller should have:

$data['register'] = $this->url->link('account/register', '', true);

The above is default OC and the 'true' boolean tells the link generator to set the link as SSL. However as you are using a non-standard SEO URLs, it most likely has done something to this.

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Rainforest » Sun Feb 26, 2017 11:11 pm

You are correct. I am using SEO Tool Extension (the expensive one in the OC shop).

I was also reading about SSL on the full site. I didnt know it would help with SEO.
I tried the above change in HTACESS but all it did was add an extra www.www. to my site
I undid the change and now my computer only redirects to www.www.
I cleared my cache, flushed my DNS but no dice :/

I did have a redirect non-www in my htaccess to www
I wonder if that messed things up?

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by allenshea » Mon Feb 27, 2017 7:26 pm

Rainforest wrote:
Sun Feb 26, 2017 7:50 pm
Thanks all for your input.
However, I believe I'm being misunderstood.

So, there is no issue with my ssl. If I go to https://mysite.com/register it's fine, there are no insecure items. I can go directly to it now and the SSL is fine.

The registration page is inherently NOT SSL and for some reason, Google Search Console (previously known as Google Webmaster) has alerted me that in Chrome 5whatever version, it will now be shown as insecure in the toolbar.

Since that page is not inherently SSL, I'd like to force it.
Google AD closed my account because of this. It is so bad.

Let me know if you have solved this problem.

I know nothing about PHP and SQL, but I still try my best to understand it.


Active Member

Posts

Joined
Mon Dec 14, 2009 10:01 pm

Post by Rainforest » Mon Feb 27, 2017 10:24 pm

They closed your account? Are you sure it was because of that? Did you get an email stating it? If so, can you share?


I'm trying to get the entire site to full SSL but it's not working.
I changed the htaccess

Do I have to change the config.php also?

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am
Who is online

Users browsing this forum: No registered users and 30 guests