osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

On The Fly Watermark Enhanced 1.1

This is a discussion on On The Fly Watermark Enhanced 1.1 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; I am using a SHARED SSL Certificate provided by my host provider and my SSL paths [/home/{user}/public_html....] are not the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-12-2007, 09:12 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,084
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post On The Fly Watermark Enhanced 1.1

I am using a SHARED SSL Certificate provided by my host provider and my SSL paths [/home/{user}/public_html....] are not the same as my NON-SSL paths [/catalog/images/....].

Issue: watermarking works Great for NON-SSL, but does not work for SSL links

Resolution: I had to change my .htaccess file to check for SSL or NON-SSL and change the path to my image.php file accordingly.

I am using a SHARED SSL Certificate provided by my host provider and my SSL paths [/home/{user}/public_html....] are not the same as my NON-SSL paths [/catalog/images/....].
I used the following in my .htaccess to check for the existance of SSL then change the path according to whether or not it was being used.

RewriteCond %{HTTPS} on
RewriteEngine on
RewriteRule ^(.*).jpg {absolute_path_to_watermark_directory}/image.php?%{REQUEST_FILENAME}
RewriteCond %{HTTPS} !=on
RewriteEngine on
RewriteRule ^(.*).jpg {virtural_path_to_watermark_directory}/image.php?%{REQUEST_FILENAME}

Hope this save you alot of time trying to figure out what is going on.

Regards and Best of luck,

ONLY .HTACCESS FILE IS ATTACHED, YOU MUST CHANGE THE PATHS TO WHAT YOU NEED IN THIS FILE BEFORE USING

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Enhanced BestSeller box with admin michael_s New osCommerce Contributions 0 03-06-2007 07:12 PM
Enhanced BestSeller box with admin michael_s New osCommerce Contributions 0 01-15-2007 05:01 PM


All times are GMT -8. The time now is 12:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax