Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/256.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.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
如何从codeigniter路径中删除index.php_Php_Apache_.htaccess_Codeigniter_Mod Rewrite - Fatal编程技术网

如何从codeigniter路径中删除index.php

如何从codeigniter路径中删除index.php,php,apache,.htaccess,codeigniter,mod-rewrite,Php,Apache,.htaccess,Codeigniter,Mod Rewrite,这是我的wamp/www/.htaccess RewriteEngine on RewriteCond $1 !^(index\.php|images|assets|robots\.txt) RewriteRule ^(.*)$ /project-name/index.php/$1 [L] # Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request RewriteCond %{REQUEST_METHOD}

这是我的wamp/www/.htaccess

RewriteEngine on
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
RewriteRule ^(.*)$ /project-name/index.php/$1 [L]

# Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
**strong text**
但是错误显示 在此服务器上找不到请求的URL/ci/public/signup

Apache/2.4.9(Win64)PHP/5.5.12服务器位于::1端口80 有什么问题吗。。我还将index.php从config.php文件中删除。

尝试以下操作

打开config.php并执行以下操作:

$config['index_page'] = "index.php"

在某些情况下,uri_协议的默认设置无法正常工作。替换

$config['uri_protocol'] ="AUTO"

HTACCESS

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
试试下面的方法

打开config.php并执行以下操作:

$config['index_page'] = "index.php"

在某些情况下,uri_协议的默认设置无法正常工作。替换

$config['uri_protocol'] ="AUTO"

HTACCESS

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

HTACCESS

RewriteEngine on
RewriteRule ^(.*)$ ./index.php/$1 [L]
RewriteCond $1 !^(index\.php|resources|robots\.txt) 

HTACCESS

RewriteEngine on
RewriteRule ^(.*)$ ./index.php/$1 [L]
RewriteCond $1 !^(index\.php|resources|robots\.txt) 

可能会重复现在该做什么?或者甚至你可以看到之前的答案总是检查,是否有重复的问题..阅读这个太可能重复的答案然后现在该做什么?或者你甚至可以看到之前的答案总是检查,是否有重复的问题..并且阅读这个太@MuhammadAhsanAyazKhan在另一个浏览器中尝试!这应该是可行的。注意codeigniter 3版本+没有uri_协议AUTO@MuhammadAhsanAyazKhan在另一个浏览器中尝试!这应该是可行的。注意codeigniter 3版本+没有uri_协议自动