修改.htaccess文件
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
RewriteEngine on RewriteCond % !^$
</IfModule>
本文详细解释了如何在.htaccess文件中使用mod_rewrite模块进行URL重写,包括开启RewriteEngine、设置条件和规则。
617

被折叠的 条评论
为什么被折叠?



