Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.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

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
Performance 安装wpml后,我的站点加载了两次_Performance_.htaccess_Wpml - Fatal编程技术网

Performance 安装wpml后,我的站点加载了两次

Performance 安装wpml后,我的站点加载了两次,performance,.htaccess,wpml,Performance,.htaccess,Wpml,我已经在我的wp站点上安装了wpml,加载速度很慢,因为站点的加载速度是您在此处看到的两倍: 我的.htaccess是: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfM

我已经在我的wp站点上安装了wpml,加载速度很慢,因为站点的加载速度是您在此处看到的两倍:

我的.htaccess是:

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

END WordPress是否在WPML设置中启用了浏览器语言重定向选项?如果我没记错的话,它使用JavaScript来完成这项工作,因此在执行重定向之前必须等待页面完全加载。我自己的网站也遇到了类似的问题,最终编写了自己的自定义PHP函数,以实现相同的功能,而无需双页面加载。

您能否提供一些详细信息,并介绍您提出的解决方案。这肯定会帮助很多遇到同样问题的人。谢谢