Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/257.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
Php Wordpress和Polylang插件。子页面开关给出错误404_Php_Wordpress - Fatal编程技术网

Php Wordpress和Polylang插件。子页面开关给出错误404

Php Wordpress和Polylang插件。子页面开关给出错误404,php,wordpress,Php,Wordpress,我在子页面上的polylang插件有问题。 当我试图从(例如http://localhost/wordpress/projects_pl/(“wordpress”是我的主文件夹)尝试更改语言后,我的url看起来像:http://localhost/wordpress/http://localhost/wordpress/home-en/并告诉我ofc 404页面错误。我不知道为什么这个url看起来像那样。也许有人知道这件事 您是否已检查启用重写url的.htaccess。我在打开子页面时遇到了相

我在子页面上的polylang插件有问题。
当我试图从(例如
http://localhost/wordpress/projects_pl/
(“wordpress”是我的主文件夹)尝试更改语言后,我的url看起来像:
http://localhost/wordpress/http://localhost/wordpress/home-en/
并告诉我ofc 404页面错误。我不知道为什么这个url看起来像那样。也许有人知道这件事

您是否已检查启用重写url的.htaccess。我在打开子页面时遇到了相同的错误404。我只是顺便修正了它,删除了访问权限,并使根wordpress文件夹可写,以允许wordpress生成新的.htaccess