29 |
+ |
+ |
30 |
+if (($port ne "443") && ($haveSSL eq 'yes') ) |
+if (($port ne "443") && ($haveSSL eq 'yes') ) |
31 |
+ { |
+ { |
32 |
+ $OUT .= "RewriteEngine on"; |
+ $OUT .= "RewriteEngine on\n"; |
33 |
+ $OUT .= " RewriteRule ^/bandwidthd(/.*|\$) https://%{HTTP_HOST}/bandwidthd\$1 [L,R]\n"; |
+ $OUT .= " RewriteRule ^/bandwidthd(/.*|\$) https://%{HTTP_HOST}/bandwidthd\$1 [L,R]\n"; |
34 |
+ $OUT .= " RewriteRule ^/bandwidthd-php(/.*|\$) https://%{HTTP_HOST}/bandwidthd-php\$1 [L,R]\n"; |
+ $OUT .= " RewriteRule ^/bandwidthd-php(/.*|\$) https://%{HTTP_HOST}/bandwidthd-php\$1 [L,R]\n"; |
35 |
+ $OUT .= " RewriteRule ^/bandwidthd-static(/.*|\$) https://%{HTTP_HOST}/bandwidthd-static\$1 [L,R]\n"; |
+ $OUT .= " RewriteRule ^/bandwidthd-static(/.*|\$) https://%{HTTP_HOST}/bandwidthd-static\$1 [L,R]\n"; |
36 |
+ if (exists $<!--[NAME]-->{'URL'}) |
+ if (exists $bandwidthd{'URL'}) |
37 |
+ { $OUT .= " RewriteRule ^/$bandwidthd{'URL'} https://%{HTTP_HOST}/$bandwidthd{'URL'}\$1 [L,R]\n"; } |
+ { $OUT .= " RewriteRule ^/$bandwidthd{'URL'} https://%{HTTP_HOST}/$bandwidthd{'URL'}\$1 [L,R]\n"; } |
38 |
+ } |
+ } |
39 |
+} |
+} |