Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.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站点中的链接在迁移到新服务器并实现SSL后不起作用?_Wordpress_.htaccess - Fatal编程技术网

为什么我的WordPress站点中的链接在迁移到新服务器并实现SSL后不起作用?

为什么我的WordPress站点中的链接在迁移到新服务器并实现SSL后不起作用?,wordpress,.htaccess,Wordpress,.htaccess,我客户的WordPress站点被迁移到一个新的服务器上,并实现了SSL,即https现在位于URL上。但现在内部链接不起作用。我在shop.ryokudo.asia Port 443上收到Apache/2.4.10(Debian)服务器的页面未找到错误消息 在“设置”>“常规”中,Wordpress和站点地址URL的http被替换为https。Settings>Permalink具有https on URL地址 设置>永久链接下部显示: 如果您的.htaccess文件是可写的,我们可以自动执行此

我客户的WordPress站点被迁移到一个新的服务器上,并实现了SSL,即https现在位于URL上。但现在内部链接不起作用。我在shop.ryokudo.asia Port 443上收到Apache/2.4.10(Debian)服务器的页面未找到错误消息

在“设置”>“常规”中,Wordpress和站点地址URL的http被替换为https。Settings>Permalink具有https on URL地址

设置>永久链接下部显示: 如果您的.htaccess文件是可写的,我们可以自动执行此操作,但事实并非如此。这些是您应该在.htaccess文件中使用的mod_重写规则。在字段中单击并按CTRL+a选择全部

下面是代码:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]

如何解决此问题?

您确实按照消息要求手动将该代码粘贴到了.htaccess中,对吗?请尝试删除您的.htaccess文件(如果需要将其放回,请保存),然后转到“设置”>“永久链接”并保存永久链接。我还没有对服务器的FTP访问权限。一旦管理员向我提供访问权限,我将尝试这些建议。谢谢,我现在可以使用winscp访问。我已在本地更新了.htaccess并将其传输到根目录。链接仍然不起作用。我下一步做什么?