1,105,333 Community Members

Replace Empty IMG source with image in .htaccess

Member Avatar
jonow
Junior Poster
104 posts since Jan 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 156 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
jonow
Junior Poster
104 posts since Jan 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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: