问题描述
我下载项目的我的服务器,然后我更改配置文件和数据库作为通常,最后我删除了在主文件夹中的htaccess文件。现在我可以去我的主页,但我不能去我的网站中的其他链接,我得到这个错误。
I downloaded project the my server then I changed config file and database as usually and finally i deleted the htaccess file that is in the main folder. Now i can go to my home page but i can't go to other links in my site and i got this error.
**Not Found
The requested URL /utripes/auther/signup signup was not found on this server.**
如何解决此错误。
请快速帮助。
How can i fix this error.please need quick help. than you.
推荐答案
当您从项目根目录中删除htaccess文件时,您的URL应包含index.php。
As you delete the htaccess file from your project root directory so your url should include index.php.
我建议您在项目根目录中包含htaccess文件,并将以下代码粘贴到htaccess文件中。
I recommend that you include the htaccess file in your project root directory and paste the following code into the htaccess file..
RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
$ b b
我认为现在你的项目应该工作得很好..
I think now your project should work fine..
这篇关于Codeigniter“找不到请求的网址”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!