我的WordPress 404 Not Found错误已经消失:)

问题描述 投票:-3回答:1

我第一次使用WordPress,我更改了URL设置,出现了这个错误

The requested URL /index.php was not found on this server.

 Additionally, a 404 Not Found error was encountered while trying to 
 use an ErrorDocument to handle the request.

我试图找到.htaccess文件,但没有这样的文件,我试图创建一个,但错误仍然出现

我真的不知道该怎么办..请帮忙吗?

-EDIT:我解决了错误https://www.youtube.com/watch?v=vgyaK7dpJB0&t=0s&list=LLDSGkl9MD0q2BjLLJ82nAmA&index=5这个youtuber救了我的命

database wordpress cpanel
1个回答
0
投票

你需要添加.htaccess文件。并在.htaccess文件中添加以下代码。

# 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
© www.soinside.com 2019 - 2024. All rights reserved.