我有一个 MVC 框架。每个请求都应该由 index.php 文件处理。它工作正常,除了以 jpg、gif、png 等通用扩展名结尾的请求。在这种情况下,我的 PHP 会话消失了
我的 htaccess 文件如下:
php_flag display_errors on
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /projecten/xxxxxxxx/index.php?route=$1 [L,QSA]
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
谁有我的解决方案?
编辑:我的问题在服务器上,在我的本地机器上一切正常,但在在线服务器上出现问题。