CodeIgniter删除子目录中的index.php
我正在尝试从托管在子域“test”内的 codeigniter 项目中的 url 中删除 index.php
我已经尝试了以下 .htaccess,但出现内部服务器错误。
RewriteEngine On
RewriteBase /test
RewriteRule ^(.*)$ /index.php/$1 [L]
谁能看到问题,谢谢
I'm trying to remove the index.php from the url in a codeigniter project thats hosted inside a subdomain 'test'
I've tried the following .htaccess, but I'm getting an internal server error.
RewriteEngine On
RewriteBase /test
RewriteRule ^(.*)$ /index.php/$1 [L]
can anyone see the problem, thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我用这个...应该也适用于子文件夹,我想..
I use this... should work on a subdfolder as well, I think..