【发布时间】:2018-01-15 15:27:35
【问题描述】:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
你能给我解释一下吗?似乎有太多,他们做同样的事情。请注意,我正在使用这些从代码点火器的 URL 中删除 index.php。
为什么会有 ?标记 index.php?
【问题讨论】: