在此服务器上找不到请求的URL /登录

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

我正在尝试在计算机上设置本地WP环境。我的.htaccess文件(与index.php文件位于同一文件夹中)如下:

I'm trying to set up a local WP environment on my machine. My .htaccess file (which is in the same folder as my index.php file) looks like this:

# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress

我的MAMP数据库每次都应正确设置我尝试在浏览器中查看该网站,得到:

My MAMP database should be set up correctly Every time I try to view the site in my browser, I get:

未找到

在此服务器上找不到请求的URL / wordpress。 Not Found

The requested URL /wordpress was not found on this server.

我的wp-config.php文件如下所示:

My wp-config.php file looks like this:

define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', 'root'); /** MySQL hostname */ define('DB_HOST', 'localhost');

我没有尝试移动任何东西,所以我没有在尝试更新永久链接。我尝试更改MAMP上的端口,尝试各种URL字符串(包括端口号,尝试导航到站点内的特定页面,等等。)我尝试了在此服务器上找不到请求的URL / about 和WP的指南(尽管它们似乎

I haven't tried to move anything around, so I'm not trying to update permalinks. I've tried changing the ports on MAMP, trying various strings of URLs (including port number, trying to navigate to specific pages within the site, etc. I've tried everything suggested on The requested URL /about was not found on this server and WP's guidelines (though they seem to solve issues only after people have installed plugins — I'm just trying to set up the basic initial WP download).

有什么建议吗?我完全不知所措

Any suggestions? I'm at a total loss for what else to try. Any help is greatly appreciated — thank you!

这是我的文件夹结构(在我的站点文件夹中,这是MAMP指向的位置): 文件夹结构的屏幕截图

Here's my folder structure (in my sites folder, which is where MAMP is directed): screenshot of folder structure

推荐答案

a2enmod重写

服务apache2重新启动

更多推荐

在此服务器上找不到请求的URL /登录

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

发布评论

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

>www.elefans.com

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