[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Redirect with .htaccess



I am attempting to redirect a user to a secure page but am having zero luck.....

This is my .htaccess file

AuthUserFile /home/.sites/128/site10/other/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require valid-user

<IfModule mod_ssl.c>
SSLRequireSSL
</IfModule>
<IfModule !mod_ssl.c>
# no non-ssl access
Redirect permanent / https://www.domain.com
</IfModule>

What am I doing wrong?