Contributions

Features (Category Index)
Search: 

Auto redirect HTTP to HTTPS (SSL)

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}

Expand All / Collapse All

Auto redirect HTTP to HTTPS (SSL) 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}

Note: Contributions are used at own risk.