![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
JUst want to redirect all traffic in my webmail.domain.com to https and changed the .htaccess but this doesn't work. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # AddDefaultCharset UTF-8 #php_flag display_errors Off php_flag log_errors On php_value error_log logs/errors #php_value upload_max_filesize 2M <FilesMatch "(\.inc|\~)$|^_"> Order allow,deny Deny from all </FilesMatch> Order deny,allow Allow from all What am I missing. I have no access to http.conf so I need to do it in .htaccess. thanks!!
__________________
Eddie would go ! |
|
#2
|
|||
|
|||
|
I just figured this out myself. I am using this in my httpd.conf but it should work in a .htaccess as well:
RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] Hope this works! |
|
#3
|
|||
|
|||
|
The rules work, but when used with the other rules in the .htaccess from roundcube it doesn't
__________________
Eddie would go ! |
|
#4
|
|||
|
|||
|
Do you have these rules as the last set of rules? the letter L in the brackets [R=301,L] means that this rule is the last rule. So make sure these are the last rules.
|
|
#6
|
|||
|
|||
|
and for all those people who aren't using lighty for example:
I am using apache, not lightpd. That code will work with apache and mod_rewrite. |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
|||
|
|||
|
Thats cool, I didn't know if thats what you ment.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |