Getting rewrite to work with SSL in a MVC Zend Framework app

Posted by cappuccino on Stack Overflow See other posts from Stack Overflow or by cappuccino
Published on 2010-04-19T16:55:13Z Indexed on 2010/06/14 12:42 UTC
Read the original article Hit count: 219

Filed under:
|
|

I am following the Zend Framework quickstart document and got stuck on the .htaccess rewrite rules. I am using this:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

This works find when I access through HTTP, however, nothing is served when accessing through HTTPS. I am using a single directory for HTTP and HTTPS content.

I would not want to force HTTPS either.

How can I fix this?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about ssl