[英]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.