除非普通/默认

问题描述

我正在客户的网站上工作,并且遇到了一个非常持久的错误。如果我将永久链接更改为“普通”以外的任何其他链接,则所有站点链接会将您重定向回首页

认为这是一个数据库问题,但由于我不经常进行数据库操作,所以我不敢相信。但是,当我建立此站点时,我与一位开发人员合作,将他们的销售数据从Prestashop迁移到Woommerce。所以我认为那里可能发生了什么事?我发现another post表示可能是rewrite_rules表,但搜索时没有看到任何错误。是否可以使用插件或工具来隔离可能导致此奇怪重定向的原因?

我担心破坏某些东西,因此我感谢任何人都可以提供的任何帮助!

详细信息:主持人:Hostinger | wordpress版本:5.5.1 | Woocommerce:4.4.1 | Wordfence 7.4.11

我尝试的没有成功的事情:

当前.htaccess(在我获得客户批准之前,网站已更改为“ url.com”):

# 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.

# END wordpress

# Wordfence WAF
<IfModule LiteSpeed>
PHP_value auto_prepend_file '/url.com/public_html/wordfence-waf.PHP'
</IfModule>
<IfModule lsapi_module>
PHP_value auto_prepend_file '/url.com/public_html/wordfence-waf.PHP'
</IfModule>

# END Wordfence WAF


# DO NOT REMOVE THIS LINE AND THE LInes BELLOW SSL_REDIRECT:url.com
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} (www\.)?url.com
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# DO NOT REMOVE THIS LINE AND THE LInes BELLOW SSL_REDIRECT:url.com

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)