我有一个项目,我创建了数据库,我尝试用这个来识别
http://localhost/xeo2-zend/public/authentification/connexion
但我有这个错误
呃哦,出了点问题!错误代码:404
使用zend framwork 1.12创建的项目 我已经厌倦了.htacces用这个
RewriteEngine On
RewriteBase /xeo2-zend/public/
我已经厌倦了创建别名,但也不起作用。
请帮帮我!
答案 0 :(得分:0)
试试这个.htaccess
RewriteEngine On
RewriteCond%{REQUEST_FILENAME} -s [OR]
RewriteCond%{REQUEST_FILENAME} -l [OR]
RewriteCond%{REQUEST_FILENAME} -d
RewriteRule ^。* $ - [NC,L]
RewriteCond%{REQUEST_URI} :: $ 1 ^(/。+)(。+):: \ 2 $
RewriteRule ^(。*) - [E = BASE:%1]
RewriteRule ^(。*)$%{ENV:BASE} index.php [NC,L]
这是zend项目的一个普遍的.htaccess。