开发者

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

开发者 https://www.devze.com 2022-12-27 15:43 出处:网络
I am following the Zend Framework quickstart document and got stuck on the .htaccess rewrite rules. I am using this:

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 ^.开发者_Go百科*$ 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?


Someone out there has a same problem, and posted a blog on how to solve this, please take a look at it.

http://www.myscienceisbetter.info/fix-zend-framework-404-routes-on-https.html


I use Zend Framework with HTTPS, and those rewrite rules work just fine. It sounds like you're experiencing a configuration issue with the web server that has nothing to do with the rewrite rules.

0

精彩评论

暂无评论...
验证码 换一张
取 消