Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/249.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站点复制到localhost现在主题不起作用_Php_Wordpress_Localhost - Fatal编程技术网

Php 已将我的WordPress站点复制到localhost现在主题不起作用

Php 已将我的WordPress站点复制到localhost现在主题不起作用,php,wordpress,localhost,Php,Wordpress,Localhost,我制作了WordPress网站的本地副本。我可以很好地进入WordPress仪表板。问题是我们的自定义WordPress主题不起作用,我得到: localhost当前无法处理此请求。HTTP错误500 如果有帮助的话,我会使用WAMP。 当我切换到任何其他随机主题时,效果很好 在wordpress副本的根目录中打开.htaccess文件并进行更新 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBa

我制作了WordPress网站的本地副本。我可以很好地进入WordPress仪表板。问题是我们的自定义WordPress主题不起作用,我得到:

localhost当前无法处理此请求。HTTP错误500

如果有帮助的话,我会使用WAMP。
当我切换到任何其他随机主题时,效果很好

在wordpress副本的根目录中打开.htaccess文件并进行更新

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

在wordpress副本的根目录中打开.htaccess文件并进行更新

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

选择您要使用的主题,然后转到永久链接设置并保存它们。

选择您要使用的主题,然后转到永久链接设置并保存它们。

您是否确保更新WordPress数据库中引用您的实时站点的URL。可以通过在phpMyAdmin中运行SQL查询来实现这一点。以及在
wp config.php
中设置本地数据库?您是否确保更新WordPress数据库中引用您的实时站点的URL。可以通过在phpMyAdmin中运行SQL查询来实现这一点。在
wp config.php
中设置本地数据库?