We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Replace Empty IMG source with image in .htaccess

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.

2
Contributors
2
Replies
7 Hours
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
jonow
Junior Poster
104 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

pritaeas
Posting Prodigy
Moderator
9,533 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98

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

jonow
Junior Poster
104 posts since Jan 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by pritaeas

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0614 seconds using 2.66MB