作者:总是被姨妈折磨的吕孩纸 | 来源:互联网 | 2023-01-25 13:16
在apcheconf文件中配置OptionsIndexesFollowSymLinksAllowOverrideAllOrderallow,denyAllowfromall其中xx
在apche conf文件中配置
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
其中xxx指你的ci目录
然后再在ci目录中添加.htaccess文件,内容如下
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /xxx/index.php/$1 [QSA,PT,L]
ci中的url重写,去掉index.php