Welcome! Log In Create A New Profile

Advanced

Redirect/rewrite Http to https how do you do?

Posted by sadjad 
Redirect/rewrite Http to https how do you do?
October 04, 2011 04:11PM
Hey people!

I have managed to create an Nginx server with ssl, I can only access https://exempel.com if I type https (can be good to know maybe).

I would like to make my registration and payment page to be run over SSL/HTTPS, how do I do?

I use OpenCart and Nginx, and my example registration url looks like this --->
"Http://localhost/opencart/index.php?route=account/register"
It is a userregistration.php file it access.

My config file looks like this:
http://pastebin.com/xMvbDFvN

As an example to clarify what I need help with.
I wish I had a code that works something like this or something else:

http://pastebin.com/QCr4a4Jy



I had imagined something similar.

So what I want is to just do my registration, login and payment page to only run over HTTPS / SSL the rest of the website must run over standard HTTP. Notice that the url is a bit strange, it is not an SEO / FANCY (whatever call it) URL.
It is a efter the "Route" that links to the pages;
localhost / OpenCart / index.php? ***route**** = account / Success
it can be done to make it nicer URL, such as localhost / OpenCart / registry but I do not know how yet to do, I research on it. Let me know if you want me to fix it because you might have to have SEO URL for this to work?

So can you help me to fix so that just a folder or a file will only run over ssl ? :)

Grateful for answers:)

I APOLOGIES FOR MY BAD ENGLISH
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready