Monday, February 28, 2011

How to redirect non-SSL/HTTP requests for Mailman to SSL/HTTPS

Create a custom .htaccess file for Mailman, as seen below:
Code:

# touch /usr/local/cpanel/3rdparty/mailman/cgi-bin/.htaccess
# chown -vv mailman:mailman /usr/local/cpanel/3rdparty/mailman/cgi-bin/.htaccess


Enter the following contents into the custom .htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

No comments:

Post a Comment