如何从codeigniter路径中删除index.php
这是我的wamp/www/.htaccess如何从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}
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_协议自动