简体   繁体   English

Wordpress 永久链接在检查 ModRewrite .htaccess 并禁用插件后损坏

[英]Wordpress Permalinks Broken after checking ModRewrite .htaccess and disabling plugins

I'm facing a weird issue Permalink issue.我面临一个奇怪的问题永久链接问题。

Wordpress pretty permalinks are broken and after disabling all plugins and adding the default Wordpress .htaccess file I still can't get them to work. Wordpress 漂亮的永久链接已损坏,在禁用所有插件并添加默认 Wordpress .htaccess 文件后,我仍然无法让它们工作。

I've verified .htaccess permissions and the Apache user can make changes to it when I change Permalink settings in Wordpress.我已经验证了 .htaccess 权限,当我更改 Wordpress 中的永久链接设置时,Apache 用户可以对其进行更改。 I've switched between permalinks several times from plain numeric to more pretty variants.我已经在永久链接之间多次切换,从普通数字到更漂亮的变体。 The only thing that works is the numeric links.唯一有效的是数字链接。

I'm hosting Wordpress on DirectAdmin and there are several other installs of Wordpress on the same Webserver that work perfectly well.我在 DirectAdmin 上托管 Wordpress 并且在同一个 Web 服务器上还有其他几个安装的 Wordpress 运行良好。 Apache Rewrite is enabled on this server. Apache 在此服务器上启用了重写。

Does anyone have other Ideas where I can dig?有没有人有其他可以挖掘的想法?

  1. sudo a2enmod rewrite sudo a2enmod 重写

  2. then follow instructions: "What I found is the apache2.conf file did not have the AllowOveride directive set to 'All'. It was set to 'None' which overlooks all .htaccess files. once I set that and restarted Apache then the .htaccess file was being read and the rewrite rules all work now." then follow instructions: "What I found is the apache2.conf file did not have the AllowOveride directive set to 'All'. It was set to 'None' which overlooks all .htaccess files. once I set that and restarted Apache then the .htaccess file正在被读取,重写规则现在都起作用了。”

  3. sudo systemctl restart apache2 sudo systemctl restart apache2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM