Post by guimpa » Thu Feb 21, 2013 8:36 pm

Hello Fellow community members. First of all I would like to say that I have searched and tried each and every solution for my problem using this forum's search, but without any success.

Here is the situation:
- I have an OC 1.5.5.1.
- SEO is enabled and working.
- I have a Godaddy SSL and host.
- I managed to configure the SSL and it is working.
- I installed an extension to write friendly urls to my route pages (account/etc): http://www.opencart.com/index.php?route ... _license=0

The problem: I cannot make SSL work properly with the extension.
Why? Because even though I can manage to force some pages to redirect to HTTPS, the "<form action=""> is still bringing the HTTP page (and because of that, forms don't work (like the registration form).

My registration page is an example: http://farfeloo.com/cadastro

Here is my HTACCESS code:

Code: Select all

#Fix Rewrite
Options -Multiviews

<IfModule mod_rewrite.c>
Options +FollowSymLinks

#Force HTTPS on those specific pages
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(checkout|cadastro|conectando) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} !=off

# Force non-WWW to WWW
RewriteEngine on
RewriteCond %{HTTP_HOST} ^farfeloo\.com [NC]
RewriteRule (.*) http://www.farfeloo.com/$1 [R=301,L]

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]

</IfModule>

RewriteBase /
Any ideas on how to make it work? I would really appreciate! Thank you
Last edited by guimpa on Mon Feb 25, 2013 8:26 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu Feb 21, 2013 8:16 pm

Post by guimpa » Thu Feb 21, 2013 10:36 pm

Have made some changes but still nothing =(

Newbie

Posts

Joined
Thu Feb 21, 2013 8:16 pm

Post by kevung » Sun Feb 24, 2013 2:28 am

I need help with this too, except ALL my pages are using SSL cert!

I also had force HTTPS on, but wanted to remove it, only to realize the module wouldn't allow it. Is the module caching information somewhere? I would really like to use this, but this is a major flaw in the mod. Anyone please help!

New member

Posts

Joined
Thu Feb 21, 2013 12:36 pm

Post by victorj » Sun Feb 24, 2013 4:49 am

It is so simple ance you know how to do it.
remove all ssl rewrites form your .htaccess.

edit config.php in root and admin folder.
make sure that http referer both for http and https direct to https://yoursite.com

now your entire site runs ssl and seo urls are working.

if you want to see it live check my profile and see for yourself

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by kevung » Sun Feb 24, 2013 4:13 pm

Hi victor, actually we tried that, and the problem has to do with the vqmod we installed. The creator just fixed it today, so all good!

Although, now there is a problem with the flags still redirecting to https. :-[

New member

Posts

Joined
Thu Feb 21, 2013 12:36 pm

Post by guimpa » Mon Feb 25, 2013 8:26 pm

Yes, it was a problem with the code like kevung said. I thank codemasters for solving it :)

Kevung, I run my store only in one language, so I dont have the "flags" option!

Newbie

Posts

Joined
Thu Feb 21, 2013 8:16 pm

Post by guimpa » Mon Feb 25, 2013 8:27 pm

But if you can't make it work, you could manually edit the path in your header, I guess.

Newbie

Posts

Joined
Thu Feb 21, 2013 8:16 pm

Post by boon » Wed Mar 27, 2013 12:01 am

Hey victorj ...Thanks it worked for me.. Cheers :)

Newbie

Posts

Joined
Wed Apr 04, 2012 6:55 pm

Post by Subhadeep1993 » Tue Jul 20, 2021 3:47 pm

Thanks victorj. Your solution is really useful. :yahoo: :ok:

User avatar
Newbie

Posts

Joined
Fri Jun 18, 2021 6:37 pm

Who is online

Users browsing this forum: No registered users and 31 guests