我已经在我的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。请检查您是否已复制这些。
此外,请考虑处理您的接受率。请查看常见问题为什么这很重要。
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.
Also, please consider working on your accept rate. Please have a view into the FAQ why this is important.
更多推荐
错误:在此服务器上找不到请求的网址/用户/视图
发布评论