简体   繁体   English

如何解决我在图库中的某些图像根本不显示的问题?

[英]How can i fix that some of my images in gallery are not showing at all?

enter code here some of my pictures are showing only after page refresh.在此处输入代码 我的一些图片仅在页面刷新后显示。 In browser console are errors - get ... image url... 503 or 403 error Could someone help me please ?在浏览器控制台中是错误 - 获取...图像网址... 503 或 403 错误有人可以帮助我吗?

my htacces code -我的 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

and this is code for image这是图像的代码

<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>

in console is - Failed to load resource: the server responded with a status of 503 () - for all unloaded images在控制台中是 - 加载资源失败:服务器以 503 () 状态响应 - 对于所有卸载的图像

i've also noticed that it is doing on whole site when you press ctr+f5 few times in row我还注意到,当您连续按几次 ctr+f5 时,它会在整个站点上执行

Are you working on local machine ?你在本地机器上工作吗? Please check your .htaccess file or move your pitures into a subfolder请检查您的 .htaccess 文件或将您的 pitures 移动到子文件夹中

Try this one After试试这个

RewriteEngine On
RewriteBase /

Add添加

#Exclusion
RewriteCond %{REQUEST_URI} !^/(images|images/.*)$
#End exclusion

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM