我正在使用astra网站创建一个wordpress网站,当我单击“关于”或其他链接时,它会给我以下错误
Not Found
The requested URL was not found on this server.
Apache/2.4.29 (Ubuntu) Server at <my ip> Port 80
我还在index.php文件所在的目录中创建了一个.htaccess文件,并且也授予了权限。但这没有用。请帮助这是我的第一个wordpress网站。 以下是我目前的.htaccess
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<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
答案 0 :(得分:0)
以下要点之一将解决您的问题:
发件人: RewriteRule ^ index.php $-[L]
收件人: RewriteRule ^ foldername \ index.php $-[L]
发件人: RewriteRule。 /index.php [L]
收件人: RewriteRule。 /foldername/index.php [L]