Table Of Contents

骑驴找蚂蚁

全干工程师

apache去掉index.php

配置.htaccess文件加入以下配置:

RewriteEngine on
RewriteBase /
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(application|system|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

相关程序解答推荐

留言