You are here:  » HTTPS

Active Forum Topics


HTTPS

Submitted by marco@flapper on Sat, 2018-05-19 15:52 in

Hi,
I want to add a SSL to my Wordpress Multisite sites which have PT plugin.

I plan to do that by using htaccess rules. Anything I need to do more with regard to Price Tapestry?

{code saved}

Submitted by support on Mon, 2018-05-21 08:47

Hi Marco,

That looks fine - there's no need for any special considerations for the plugin within .htaccess for http(s) redirection - it's all taken care of within the WordPress internal rewrite process...

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Mon, 2019-01-28 19:58

Hi David,

I converted my website to https last year and everything appeared to work ok. Foolishly I don't remember if I checked the actual jump links or not, but I have now and discovered that they do not work!

For example, https://example.com/pt/jump.php?id=1234 does not work but if I change to http://example.com/pt/jump.php?id=1234 it will then go correctly to the merchant

{link saved}

Any ideas what the problem is?

Best regards

Richard

Submitted by support on Tue, 2019-01-29 08:31

Hi Richard,

What actually happens if you paste the https version of a link e.g. https://example.com/pt/jump.php?id=1234 directly into the browser address bar? Does it look like there is an attempt to redirect somewhere - do you just get a blank screen with no response or is there a server generated error message?

If you have access to your web server's error log that might reveal something - so that you know any output is correlated, grab or view the error log; then go to the https jump.php URL and then view the output again...

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2019-01-29 09:36

Hi David

The jump was not going to the merchant after copying the url. I have solved the problem by changing the Base Href from https to http in PTO settings.

I wrongly assumed that converting to ssl would require everything to be converted to https!

Thank you again,

Richard

Submitted by support on Tue, 2019-01-29 09:49

Hi Richard,

Bear in mind that if you are using merchant logos, changing Base HREF to http when the main site is https may mean that browsers display the "not all content is secure" warning, which is not a good look...!

If you'd like me to check it out further with you; if you would be happy to post an example of the https jump.php link that is not working (I'll remove before posting your reply) I'll check it out and look at the headers or browsers console errors to try and see why it's not working...

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2019-01-29 12:58

Hi David,

Many thanks.

An example url is {link saved} Works ok without https.

Getting the following error message:

This page isn’t working

example.com redirected you too many times.

Try clearing your cookies.

ERR_TOO_MANY_REDIRECTS

Best regards,

Richard

Submitted by support on Tue, 2019-01-29 13:13

Hi Richard,

Yes - a wget request over https shows an never ending 301 (moved permanently) to the same https URL. This is almost certainly to do with something in place to redirect non-https requests to https. Please could you post your top level .htaccess and if using /pt/.htaccess (I'll remove before publishing your reply) and I'll take a look...

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2019-01-29 17:25

I appreciate this :)

PT .htaccess
{code saved}

Top level .htaccess
{code saved}

Submitted by support on Tue, 2019-01-29 17:37

Hi Richard,

It looks like you have a .htaccess in /pt/ from a previous standalone installation (and subsequently moved to a WordPress install using the plugin) which has resulted in an incorrect RewriteBase in your /pt/.htaccess - it is the same as the top level.

The correction that would be required, your /pt/.htaccess line 3:

RewriteBase /

...should be:

RewriteBase /pt/

I'm sure that will correct the problem!

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2019-01-29 18:02

Hi David,

I have tried that but still the same error message. I have tried a different browser just in case.

Many thanks

Richard

Submitted by support on Tue, 2019-01-29 18:19

Hi Richard,

I should have spotted this before sorry - in addition to the RewriteBase, your /pt/.htaccess also has these lines:

RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

That looks like an error and would cause the indefinite redirect. All http > https handling should be done in the top level .htaccess only which looks OK - so if you remove the above lines from /pt/.htaccess that should do the trick...

Cheers,
David.
--
PriceTapestry.com

Submitted by richard on Tue, 2019-01-29 18:39

Brilliant, that has done the trick :))

Many thanks.

Best regards,

Richard