Post by vitalyk » Wed Nov 30, 2016 8:01 am

Hi
I need help.

I have installed new server with SSL and opencart 2.3.0.2
All links work great but when I try to complete contact us page to send email I get 404 error after page rewrites to https://domain.com/contact

domain name ftaelectronicsDOTcom

Please let me know what could be the problem
I am using original opencarts .htaccess and rewrite engine is ON on server
Last edited by vitalyk on Thu Dec 29, 2016 1:15 pm, edited 1 time in total.

New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by rjcalifornia » Wed Nov 30, 2016 10:27 am

Did you try this:

In the controller (catalog/controller/information/contact.php, find the following:
$this->data['action'] = $this->url->link('information/contact');
and replace with:
$this->data['action'] = $this->url->link('information/contact', '', 'SSL');

Source:
viewtopic.php?f=161&t=137756&p=547598&hilit=SSL#p547598

Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by vitalyk » Wed Nov 30, 2016 11:05 am

Hi
Thank you for your reply.

I did not find:
$this->data['action'] = $this->url->link('information/contact');

But I found:
$data['action'] = $this->url->link('information/contact', '', true);
and changed to:
$data['action'] = $this->url->link('information/contact', '', 'SSL');

Same problem so I have changed back to original. It seems to trigger 404 after I send email to store owner from contact us form or if I would rewrite the link to https://

New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by ashwani_multi » Wed Nov 30, 2016 12:59 pm

HI

ftaelectronicsDOTcom its url not working please give correct url so give you solution

Opencart Quick checkout
View All modules
Any opencart issue contact me at support@opencartextensions.in

Thank you


User avatar
New member

Posts

Joined
Tue Dec 09, 2014 2:40 pm
Location - Ludhiana,Punjab,India

Post by paulfeakins » Wed Nov 30, 2016 7:01 pm

Does it work if you turn of SEO URLs?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by EvolveWebHosting » Thu Dec 01, 2016 7:14 am

vitalyk wrote:Hi
I need help.

I have installed new server with SSL and opencart 2.3.0.2
All links work great but when I try to complete contact us page to send email I get 404 error after page rewrites to https://domain.com/contact

domain name ftaelectronicsDOTcom

Please let me know what could be the problem
I am using original opencarts .htaccess and rewrite engine is ON on server
Are you using an SEO extension? If you need help, you can send us an email at sales@evolvewebhost.com and we can look at it for you.

Image
Take a close look at our domain pricing. It's cheaper than most of the 'big name' registrars.
Detailed guide on how to install Opencart


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by vitalyk » Thu Dec 29, 2016 1:15 pm

I had a problem with server rewrite rule for SSL
The fix was to add directory under SSL: <Directory /var/www/DOMAIN.com>

Code: Select all

<VirtualHost *:80>
<Directory /var/www/DOMAIN.com>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
</Directory>
DocumentRoot /var/www/DOMAIN.com
ServerName www.DOMAIN.com
ServerAlias DOMAIN.com
</VirtualHost>




<IfModule mod_ssl.c>
<VirtualHost *:443>

        ServerAdmin webmaster@localhost
        ServerName DOMAIN.com
        DocumentRoot /var/www/DOMAIN.com

[b]<Directory /var/www/DOMAIN.com>[/b]
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

        #   SSL Engine Switch:
        #   Enable/Disable SSL for this virtual host.
        SSLEngine on

        #   A self-signed (snakeoil) certificate can be created by installing
        #   the ssl-cert package. See
        #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
        #   If both key and certificate are stored in the same file, only the
        #   SSLCertificateFile directive is needed.
        SSLCertificateFile /etc/apache2/ssl/DOMAIN.crt
        SSLCertificateKeyFile /etc/apache2/ssl/DOMAIN.key
	SSLCertificateChainFile /etc/apache2/ssl/DOMAINg2-g1.crt
</VirtualHost>

</IfModule>

New member

Posts

Joined
Sat Mar 31, 2012 10:31 am

Post by kylebaxter » Wed May 10, 2017 6:18 pm

Thanks for providing a proper fix for my site. I had a developer implement a workaround about 6 months ago which just modified the rewrite rules in .htaccess to get this problem resolved, however updates to browsers caused the same issue to resurface recently . After changing the code in contact.php from

$data['action'] = $this->url->link('information/contact');
to:
$data['action'] = $this->url->link('information/contact', '', 'SSL');

this issue was resolved. I removed the rewrite work around everything is working fine, no longer any errors or message warning the data being transmitted was not encrypted

Really appreciate the support, I didn't have the best experience with the company who developed the store for me, I'm still cleaning up what they left me with.

Newbie

Posts

Joined
Thu May 12, 2016 8:15 pm

Post by antoema76 » Tue Sep 04, 2018 6:23 pm

hello same problem after activating https, same solution:

$data['action'] = $this->url->link('information/contact');
to:
$data['action'] = $this->url->link('information/contact', '', 'SSL');

Thanks
kylebaxter wrote:
Wed May 10, 2017 6:18 pm
Thanks for providing a proper fix for my site. I had a developer implement a workaround about 6 months ago which just modified the rewrite rules in .htaccess to get this problem resolved, however updates to browsers caused the same issue to resurface recently . After changing the code in contact.php from

$data['action'] = $this->url->link('information/contact');
to:
$data['action'] = $this->url->link('information/contact', '', 'SSL');

this issue was resolved. I removed the rewrite work around everything is working fine, no longer any errors or message warning the data being transmitted was not encrypted

Really appreciate the support, I didn't have the best experience with the company who developed the store for me, I'm still cleaning up what they left me with.

New member

Posts

Joined
Sat Oct 25, 2014 6:20 pm
Who is online

Users browsing this forum: No registered users and 10 guests