Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未路由到wordpress中的其他页面_Wordpress_.htaccess_Wordpress Theming_Permalinks - Fatal编程技术网

未路由到wordpress中的其他页面

未路由到wordpress中的其他页面,wordpress,.htaccess,wordpress-theming,permalinks,Wordpress,.htaccess,Wordpress Theming,Permalinks,我正在用astra网站创建一个wordpress网站,当我点击about或其他链接时,会出现以下错误 Not Found The requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at <my ip> Port 80 未找到 在此服务器上找不到请求的URL。 端口80处的Apache/2.4.29(Ubuntu)服务器 我还在index.php文件所在的目录中创建了一个.htacc

我正在用astra网站创建一个wordpress网站,当我点击about或其他链接时,会出现以下错误

Not Found
The requested URL was not found on this server.

Apache/2.4.29 (Ubuntu) Server at <my ip> Port 80
未找到

在此服务器上找不到请求的URL。
端口80处的Apache/2.4.29(Ubuntu)服务器
我还在index.php文件所在的目录中创建了一个.htaccess文件,并授予了权限。但它不起作用。请帮助我,这是我的第一个wordpress站点。 下面是我的curren.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
#开始WordPress
#“BEGIN WordPress”和“END WordPress”之间的指令(行)是
#动态生成,只能通过WordPress过滤器修改。
#这些标记之间对指令的任何更改都将被覆盖。
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress

以下几点之一可以解决您的问题:

  • 请您尝试以下步骤:
    • 打开WordPress登录页面
    • 使用管理员凭据登录
    • 从管理面板的左侧栏转到设置菜单
    • 单击永久链接子菜单项
    • 保存永久链接
  • 如果要在本地计算机中设置此项目,请在以下行中添加项目文件夹名称:
  • 发件人: 重写规则^index.php$-[L]

    致: 重写规则^foldername\index.php$-[L]

    发件人: 重写规则/index.php[L]

    致: 重写规则/foldername/index.php[L]

  • 如果在Live server上工作,可能需要从服务器的conf文件中删除限制

  • 堆栈溢出用于编程特定问题。有关WordPress管理、服务器配置等的问题都是离题的,更适合于。在发布之前,请先查看他们的“帮助”部分,了解如何编写您的问题,以使其符合他们的指导原则。@Sahan Thilakarathna,在完成上述步骤后,如果您还有任何问题,请告诉我。