删除localhost/folder/my_codeigniter中的index.php codeigniter/
我从任何来源尝试了一些解决方案,但如果我的项目位于其他文件夹(如:),则仍然无法删除index.php,如果我的项目位于,则all.htaaccess和配置工作正常删除localhost/folder/my_codeigniter中的index.php codeigniter/,php,codeigniter,Php,Codeigniter,我从任何来源尝试了一些解决方案,但如果我的项目位于其他文件夹(如:),则仍然无法删除index.php,如果我的项目位于,则all.htaaccess和配置工作正常 希望你能帮助我,谢谢 您可以在项目根文件夹上创建.htaccess文件。像这样的文件内容 RewriteEngine on RewriteCond $1 !^(index\.php|assets) RewriteRule ^(.*)$ /your-project/index.php/$1 [L] 工作谢谢兄弟!->'Rewrite
希望你能帮助我,谢谢 您可以在项目根文件夹上创建.htaccess文件。像这样的文件内容
RewriteEngine on
RewriteCond $1 !^(index\.php|assets)
RewriteRule ^(.*)$ /your-project/index.php/$1 [L]
工作谢谢兄弟!->'RewriteRule^(.*)$/project/my_codeigniter/index.php/$1[L]“我在中看到过类似的内容,但忘了用基于本地主机的完整项目路径替换“您的项目”,谢谢!不重要。你能把它标为答案吗?谢谢。
无法删除index.php,如果…
这个问题是如何表现出来的?@greybeard无法访问任何控制器