Community Add-Ons

Maintainers: Frank Heinen
Add file to this package
Top » Features

Auto redirect HTTP to HTTPS (SSL)
for osCommerce Online Merchant v2.2

This is a very simple and small mod to let osCommerce admin automatically switch from HTTP to HTTPS (SSL).

Add the code in the file (.htaccess) to the existing one in the admin directory on the webserver (if this exists). Please double check if your FTP browser shows hidden files!! Otherwise you'll overwrite the existing .htaccess.

If the .htaccass doesn't exists then simply upload the .htaccess into the admin folder on your webserver.

This is the code to add. (Do not change anything!):
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Legend:  Download   Report
Expand All / Collapse All
Auto redirect HTTP to HTTPS (SSL) Frank Heinen 21 Aug 2006  

This is a very simple and small mod to let osCommerce admin automatically switch from HTTP to HTTPS (SSL).

Add the code in the file (.htaccess) to the existing one in the admin directory on the webserver (if this exists). Please double check if your FTP browser shows hidden files!! Otherwise you'll overwrite the existing .htaccess.

If the .htaccass doesn't exists then simply upload the .htaccess into the admin folder on your webserver.

This is the code to add. (Do not change anything!):
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}