Zend .htaccess https, http mit Modulen

RewriteEngine on
RewriteBase /

RewriteCond %{HTTPS} off
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /((user|admin)/(.*))\ HTTP/
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [L,R=301]
RewriteCond %{HTTPS} on

RewriteCond %{THE_REQUEST} !^[A-Z]+\ /((user|admin|skin|cache|data)/(.*))\ HTTP/
RewriteRule ^(.*)$ http://%{SERVER_NAME}/$1 [L,R=301]

#RewriteRule Boot/(.*) Boot/$1 [QSA,L]
#RewriteRule !\.(js|ico|gif|jpg|png|css|swf|eot|svg|ttf|woff|pdf|html)$ index.php
RewriteCond %{REQUEST_FILENAME} \.(js|css|ico|gif|jpg|png|swf|txt|swf|eot|svg|ttf|woff|pdf)$ [OR]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ – [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [NC,L]

SetEnv TEMP /var/home/k000227/tmp

Siehe auch :  http://stackoverflow.com/questions/6580154/htaccess-https-redirect-only-on-specific-zend-frameworks-controller-actions

Leave a Reply

Your email address will not be published. Required fields are marked *

1 × = one

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>