[英]Codeigniter Page Not Found , change in .htacess
I was working on my test live server , i made some changes in a file and saved it , suddenly the whole website crashed. 我正在测试实时服务器上工作,我对文件进行了一些更改并将其保存,突然整个网站崩溃了。
When i now log to my test server(http://www.uplits.com/). 当我现在登录到测试服务器时。 It shows a Directory has no index file error and when i log into the codeigniter(http://uplits.com/skidt/admin919/codeigniter/)
它显示目录没有索引文件错误,当我登录到codeigniter(http://uplits.com/skidt/admin919/codeigniter/)时
It shows a page not found error. 它显示页面未找到错误。
Please help , i dont know what could have gone wrong. 请帮助,我不知道可能出了什么问题。
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
Remove: 去掉:
RewriteCond $1 !^(index\.php|resources|robots\.txt)
You shouldn't need this as the !-f & !-d conditions should take care of this. 您不需要此,因为!-f和!-d条件应注意这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.