Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.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/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/4/postgresql/9.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
Apache htaccess https重定向未使用我的最新css文件–;http和https版本的站点使用不同的css_Apache_.htaccess - Fatal编程技术网

Apache htaccess https重定向未使用我的最新css文件–;http和https版本的站点使用不同的css

Apache htaccess https重定向未使用我的最新css文件–;http和https版本的站点使用不同的css,apache,.htaccess,Apache,.htaccess,我注意到,当我添加https重定向时,它不会加载我最近的css更改。它以前是有用的,但我不知道为什么它不知道 RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.html [NC,L] 该站点仍然加载cs

我注意到,当我添加https重定向时,它不会加载我最近的css更改。它以前是有用的,但我不知道为什么它不知道

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
该站点仍然加载css的其余部分,但不是我在“images.css”上链接背景图像的最新一个。这是什么原因?我试着在我的每一页的
下面添加
,但似乎不起作用


为什么会发生这种情况以及如何修复它?

我最终发现这是一个cloudflare问题,要解决它,需要清除他们的缓存。我不知道这为什么会被否决,我希望遇到同样问题的人也能看到这一点,因为这可能会让他们感到困惑