在 git hub 的 codeigniter 3 中,我尝试使用enable_query_strings
但没有做我想要的。
我使用 index.php 但也想添加index.php?route=
所以 url 看起来像http://www.example.com/index.php?route=folder/controller/
但是当我将它添加到我的配置 index_page 路由不起作用$config['index_page'] = 'index.php?route=';
也不适用于
Options +FollowSymlinks
Options -Indexes
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Order deny,allow
Deny from all
</FilesMatch>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
锄头我可以$config['index_page'] = 'index.php?route=';
用我的网址完成工作吗?