S
S
Stanislav Belov2015-04-15 12:45:51
Apache HTTP Server
Stanislav Belov, 2015-04-15 12:45:51

How to make a correct redirect to https in OpenCart 2.0?

There is an IM on OpenCart 2.0.x. How to properly redirect from site.com to https://www.site.com .
Yes, it is necessary so that after that there would be no unnecessary redirects! Let me explain, when I registered a redirect to https in .htaccess, an incomprehensible 302 redirect began to appear

http://www.site.com/women/women-shoes-krossovki/women-shoes-krossovki-nike
302: Temporary redirect to https://www.site.com/index.php?_route_=women/women-shoes-krossovki/women-shoes-krossovki-nike


And then a 303 redirect to a normal CNC link (as it should be, I use SeoPro ( https://github.com/rb2/opencart-seopro/tree/oc2011 ))

https://www.site.com/index.php?_route_=women/women-shoes-krossovki/women-shoes-krossovki-nike
303: Temporary redirect to https://www.site.com/women/women-shoes-krossovki/women-shoes-krossovki-nike/


What is a 302 redirect and where does it come from index.php?_route_=?

Moreover, if you do not redirect to https in .htaccess, then 302 redirects index.php?_route_=do not appear.

In general, the essence of the question is this: how can I make a correct redirect to https in OpenCart 2.0?

PS In the admin panel, I set the use of SSL (Use SSL - Yes).

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Evgrafovich, 2015-04-15
@Tantacula

Not particularly strong in this, but you do not need to dig into the opencart, but configure the server yourself. Look for similar articles opensource.ucoz.ru/publ/1-1-0-46 , well, or look at this one, I hope it helps.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question