1.11M Members

Replace Empty IMG source with image in .htaccess

 
0
 

I know how to replace any image that cannot be found with a default image with the .htaccess file but I was wondering if it could be done when there is not URL.

For example if I have this:

<img src="" alt="Picture" />

It would not show up, I was wondering if I could make a image show up for this situation using the .htaccess file.

Thanks.

 
0
 

Not possible with .htaccess, but you could do it with Javascript/jQuery.

 
0
 

Ok ok, that's what I thought. Thanks!

Question Answered as of 2 Years Ago by pritaeas
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: