Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
删除localhost/folder/my_codeigniter中的index.php codeigniter/_Php_Codeigniter - Fatal编程技术网

删除localhost/folder/my_codeigniter中的index.php codeigniter/

删除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

我从任何来源尝试了一些解决方案,但如果我的项目位于其他文件夹(如:),则仍然无法删除index.php,如果我的项目位于,则all.htaaccess和配置工作正常


希望你能帮助我,谢谢

您可以在项目根文件夹上创建.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无法访问任何控制器