I have folder names in folders. But it srcis in lower case, so this is not loading images.
src
I cannot make all image folders lowercase, so I want to change my code to accept a case-insensitive path.
I have a link like this:
<a href="http://www.google.com"> <img id="productMainImage" src="images/Tulips.jpg" alt="image" escapeXml="false" class="product_main_image"/> </a>
I want to make the src image case insensitive; I want the code, even if src ="IMAGES/Tulips.jpg".
src ="IMAGES/Tulips.jpg"
How to solve this problem?
Either you can use JS for this, using toLowerCase(), or you need to rename them yourself.
toLowerCase()
, , HTML , UNIX- , Microsoft .
, - , PHP, strtolower(), , JavaScript, .
strtolower()
, .htaccess RewriteRule . - :
RewriteRule ^IMAGES/(.*)\.(jpg|jpeg|gif|png)$ images/$1.$2
, - - , OSX , Linux.
, - apache mod_rewrite - , . , , , .
Source: https://habr.com/ru/post/1526321/More articles:Heroku & DNS: Can http://nakeddomain.com target my heroku app? - dnsPhp download file gives error code 4. Why? - phpSKPhysicsJoint allows orbit around a fixed point - sprite-kitConnecting TeamCity to Visual Studio Online - tfschange # operator to lua - lua-tablehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1526322/connecting-tfs-to-teamcity&usg=ALkJrhgJ3VVKXiZYPDFsOZbSDJx0u2xOCgAsp template error - monoAn unhandled exception of type "System.ServiceModel.CommunicationException" occurred in the mscorlib.dll file - visual-studio-2010Are ARIA roles inherited by descendants? - htmlSpeed ββup adding text to TextBox - performanceAll Articles