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 ?
my htacces code -
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
i've also noticed that it is doing on whole site when you press ctr+f5 few times in row
Are you working on local machine ? Please check your .htaccess file or move your pitures into a subfolder
Try this one After
RewriteEngine On
RewriteBase /
Add
#Exclusion
RewriteCond %{REQUEST_URI} !^/(images|images/.*)$
#End exclusion
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.