错误:在此服务器上找不到请求的网址/用户/视图

编程入门 行业动态 更新时间:2024-10-20 03:55:05
本文介绍了错误:在此服务器上找不到请求的网址/用户/视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在我的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 labeled Show hidden files and folders.
  • Also, please consider working on your accept rate. Please have a view into the FAQ why this is important.

    更多推荐

    错误:在此服务器上找不到请求的网址/用户/视图

    本文发布于:2023-10-31 15:59:25,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1546570.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:在此   找不到   视图   器上   错误

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!