News:

Looking for documentation? Take a look on our wiki

Main Menu

PayPal - Payment Confirmation https:/www problem

Started by lanthan, June 29, 2014, 13:31:08 PM

Previous topic - Next topic

lanthan

Hi there,

VM2.6.6, J2.5.22, PHP5.5

I am using the paypal standard plugin of VM, but do not get the notification back that the payment was successful done even it was. The problem is the following. My SSL certificate works for https://domain.com.

But the URL which is send to Paypal to send the notification is with www

https://www.domain.com/...

This canĀ“t work. It should be send without www in my case. Then it wourld work. Any ideas how I can solve this problem?

Thanks in advance.

jenkinhill

Use .htaccess to force both http: and https: to drop the www. in the url. That ought to do it, but not tested.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lanthan

Thanks.

I tried this (before) with different rewrites found searching the internet but did not succeed. Unfortunately I am not so experienced with htaccess stuff. I just should have a rewrite from all www.domain.com to domain.com.

jenkinhill

This is what I use, but this site does not use PayPal.  Authorize.net works OK with it.  The syntax may not be correct for your server, though.

Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lanthan

Thanks for your help.

But unfortunately this does not work either. If I use you rewrite rule the website does not show up. I think I have to contact my provicder and ask him to solve this problem.

jenkinhill

The real solution is to use a wildcard ssl certificate, or at least one that includes with & without www.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

lanthan

:-) Well, I changed my certificated today into a wildcard ssl certifcate.