Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

URL product for a pdf dont work in HTTPS


fulviods

Recommended Posts

Posted

Hi!

 

On a MS1 with HTTPS, when I put the url (without http://) of a pdf file in the box "products URL" inside a product edition when I try to click on the link on the public website, I m redirected to the pdf url but in http and not HTTPS :( so the file it not opened...

 

in the info_product.php file I had this code (giving me the error)

 

<td class="main"><br><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info_values['products_url']), 'SSL', true, true)); ?></td>

 

so someone told me to replace this code with this one:

 

<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'SSL', true, false)); ?></td>

 

But with this new code, when I click on the link for the pdf i'm redirected to the index.php of the shop!!

 

How can I just add a "s" to the http!? :)

 

Thanks

 

Sorry if my english is not perfect.

 

Thanks

 

Fulvio

Posted

redirect.php isn't coded to use https

 

    case 'url':    if (isset($HTTP_GET_VARS['goto'])) {
                    tep_redirect('http://' . $HTTP_GET_VARS['goto']);

That's the part of the code that get's executed (I believe).

 

Personally, I'm having a hard time seeing why it has to be https to work

:huh:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...