错误:在此服务器上找不到请求的网址/用户/视图 [英] Error :The requested url /users/view is not found on this server
问题描述
我已经在我的Windows机器中安装了WAMP服务器。我已经从网络下载了一个名为samplecake的简单cakephp应用程序并将该应用程序复制到c:WAMP / www然后尝试使用http:localhost / samplecake运行应用程序它显示了登录页面(在routes.php我已重定向的/ /用户/登录)。在我的控制器的afterlogin重定向到/ users / view,但后成功登录后会重定向到/ users / view
但显示错误:找不到
在此服务器上找不到请求的网址/用户/
我已经尝试过user_controller中存在的所有操作,如/ users / add,/ users / edit,但它显示相同的错误未找到他要求的URL / users /在此服务器上找不到添加
如何解决这个问题如果有谁知道请帮助我提前感谢.......... ...
似乎缺少.htaccess。请检查您是否已复制这些。
- 打开资源管理器
- 选择工具菜单,然后点击文件夹选项。
- 出现新窗口后,选择查看标签。
- 在
隐藏文件和文件夹部分
/ code>选择
显示隐藏的文件和文件夹的单选按钮。
此外,请考虑处理您的接受率。请查看常见问题为什么这很重要。
I have installed the WAMP server in my windows machine .I have downloaded a simple cakephp application called "samplecake" from net and copy that application to c:WAMP/www And try to run the application using http:localhost/samplecake then it shows the login page (in routes.php i have redirected the '/' to users/login).In my controller the afterlogin redirect to /users/view , But after the successful login it will redirect to /users/view
but it shows an error:Not Found
The requested URL /users/view was not found on this server.
I have tried all the actions that are present in user_controller like /users/add, /users/edit but it shows the same error Not Found he requested URL /users/add was not found on this server
How can i solve this Not found url problem if anyone knows please help me thanks in advance.............
Seems like a .htaccess is missing. Please check if you have copied those. Maybe your Windows hid those files, make sure to have enabled that you can see all files on your system.
- Open explorer
- Select the Tools menu and click Folder Options.
- After the new window appears select the View tab.
- Put a checkmark in the checkbox labeled
Display the contents of system folders
. - Under the
Hidden files and folders section
select the radio button labeledShow hidden files and folders
.
Also, please consider working on your accept rate. Please have a view into the FAQ why this is important.
这篇关于错误:在此服务器上找不到请求的网址/用户/视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!