键入我的网站的 URL 时,它会在末尾添加单词


When typing the URL to my website, it adds words to the end

我有一个问题,我尝试在谷歌上搜索解决方案,但找不到。当我键入网站页面的 URL 或从书签访问它时,它会在 URL 末尾添加单词,从而导致 404 错误。

所以我有这个网址:

https://www.mywebsite.com/whmcs/admin/

当我键入 URL 或从书签访问它时,它会返回以下内容:

https://www.mywebsite.com/whmcs/admin/whmcs/admin/

这是一个WordPress网站。可能是什么问题?提前谢谢。

# 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] 
    RewriteCond %{HTTP_HOST} !^www'. 
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L]
    RewriteCond %{HTTPS} off 
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}$1 
</IfModule> 
# END WordPress

RewriteEngineRewriteBase 之间应该有一个换行符

RewriteEngine On
RewriteBase /