[英]How can i fix that some of my images in gallery are not showing at all?
在此处输入代码 我的一些图片仅在页面刷新后显示。 在浏览器控制台中是错误 - 获取...图像网址... 503 或 403 错误有人可以帮助我吗?
我的 htaccess 代码 -
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} ^id=8$
RewriteRule ^albumgallery.php$ https://www.website.com/blabla? [L,R=301]
RewriteRule ^blabla/?$ /albumgallery.php?id=8&loop=no [L]
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index
RewriteRule ^(.*)index$ /$1 [R=301,L]
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#Exclusion
RewriteCond %{REQUEST_URI} !^/(images|images/.*)$
#End exclusion
这是图像的代码
<a title="<?php echo $gimagenonumber ?>" href="images/gupload/<?php echo $gimage; ?>" data-lightbox="ourClass"><img alt="<?php echo $gimagenonumber ?>" title="<?php echo $gimagenonumber ?>" class="horizontals" src="/images/gcatch/<?php echo $gimage ?>"/></a>
在控制台中是 - 加载资源失败:服务器以 503 () 状态响应 - 对于所有卸载的图像
我还注意到,当您连续按几次 ctr+f5 时,它会在整个站点上执行
你在本地机器上工作吗? 请检查您的 .htaccess 文件或将您的 pitures 移动到子文件夹中
试试这个后
RewriteEngine On
RewriteBase /
添加
#Exclusion
RewriteCond %{REQUEST_URI} !^/(images|images/.*)$
#End exclusion
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.