我如何解决我在画廊中的一些图像根本没有显示?

问题描述 投票:-1回答:2

在这里输入代码我的一些图片仅在页面刷新后显示。在浏览器控制台中有错误 - 获取...图片网址... 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时,它在整个网站上都有效

php html refresh
2个回答
0
投票

你在本地机器上工作吗?请检查.htaccess文件或将图片移动到子文件夹中


0
投票

试试这个之后

RewriteEngine On
RewriteBase /

#Exclusion
RewriteCond %{REQUEST_URI} !^/(images|images/.*)$
#End exclusion
© www.soinside.com 2019 - 2024. All rights reserved.