使用htaccess重定向
I want to redirect '/' or '/index' to '/user' action in zend2. I googled it but still I haven't found a solution.
The htaccess code is:
SetEnv "APP_ENV" "developement"
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*)/$ /$1 [R,L]
RewriteRule ^.*$ index.php [NC,L]
douye7033
2014/02/24 08:57- php
- 点赞
- 收藏
- 回答
满意答案
1个回复
