Showing an Image on Remote Server Error

If you’re hotlinking images from other servers (this is often used when adding banner codes), you might face the situation when remote server becomes unavailable. This will spoil your site look, if you don’t add a simple code, that allows to solve this issue. <img src=”BANNER URL(REMOTE)” onError=”this.src=’LOCAL URL SHOWN ON REMOTE SERVER ERROR'” height=31 width=88> This simple… Read More »

Disable Directory Listing Without Slash – Apache Config

Sometimes you need to deny directory listing on user input. For example, you don’t want your blog to be accessed at http://yoursite.com/blog, using only http://yoursite.com/blog/. This slash is added by mod_dir, that allows automatic adding of trailing slashes. A “trailing slash” redirect is issued when the server receives a request for a URL http://servername/foo/dirname where dirname is a… Read More »