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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.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 css工作不正常_Wordpress - Fatal编程技术网

子目录wordpress css工作不正常

子目录wordpress css工作不正常,wordpress,Wordpress,我在子目录中安装了WordPress站点,我的CSS不起作用,但当我启动本地XAMPP服务器时,它就起作用了。我关闭了我的XAMPP,我的CSS就不再工作了 我在wp\u选项中更改了我的站点的url和主页,但仍然不起作用 以下是.htaccess文件: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /staging/ RewriteRule ^index\.php$ - [L] Rewr

我在子目录中安装了WordPress站点,我的CSS不起作用,但当我启动本地XAMPP服务器时,它就起作用了。我关闭了我的XAMPP,我的CSS就不再工作了

我在wp\u选项中更改了我的站点的url主页,但仍然不起作用

以下是.htaccess文件:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /staging/
RewriteRule ^index\.php$ - [L]
RewriteRule ^(/)?$ staging[L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^(www.)?paradiseexplorers.com$
RewriteRule . /staging/index.php [L]
</IfModule>

# END WordPress
#开始WordPress
重新启动发动机
重写基础/暂存/
重写规则^index\.php$-[L]
重写规则^(/)?$staging[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写COND%{HTTP_HOST}^(www.)?paradiseexplorers.com$
重写规则/staging/index.php[L]
#结束WordPress
这是


我怎样才能修好它

为了让WordPress正常工作,您需要运行XAMPP(或任何其他开发环境)。我感觉PHP可能没有得到编译,或者没有正确地包含CSS文件,但是无论如何,您都需要让XAMPP保持运行。谢谢您的帮助。我修好了。我停用,然后重新激活,它工作得很好。