【发布时间】:2021-09-25 08:39:42
【问题描述】:
嗨,亲爱的 Stackflow 社区,我是 Codeignite 编码的新手,所以我希望你们给我时间来解决这个错误,谢谢提前 :) 所以基本上我在这里遵循了一个教程,我从 URL 禁用了 index.php,该问题已解决,但我仍然有剩余的问号?我在stackflow中尝试了每个教程,最终我设法删除了index.php,但问号仍然存在,那么如何删除index.php?最后有 example.com/index.php?/signin 到 example.com/signin 没有 index.php 和?标记 这是我的 htaccess 文件夹
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
RewriteCond %{QUERY_STRING} ^(.*)i=[^&]+(.*)$ [NC]
RewriteRule ^(.*)$ /$1?%1%2 [R=301,L]
</IfModule>
AddType text/vtt .vtt
【问题讨论】:
标签: .htaccess codeigniter url