Use .htaccess to rewrite/redirect requests

How to redirect or rewrite URLs using .htaccess? File, called as .htaccess, can be used to rewrite URLs apart from doing other stuffs like application handlers etc. We can do some potent manipulations with our links, like, Transforming long URL’s into short, easy to remember URLs Transforming URLs having in-comprehensive query strings like “filename?id=carnivores&cat=animals” into […]

Block robots from accessing webpages using .htaccess

How to block Use htaccess file. this is run by server and ensured by the server that the rules written in it are enforced. On the other hand, robots.txt file is just a guideline file. Robots are not bound to follow it. To ensure denial of all requests for the restricted directory, put the following […]

Stop indexing files in a directory using .htaccess

How to stop indexing of files in a directory using .htaccess? Sometimes we do not want to show all the files in a directory (which by default is a behavior of web servers). That can be done using htaccess file. Though there’s a simple solution to this, put an index.html file showing a decent message […]

HTTP Authentication in URL not working in IE

IE (Internet Explorer) doesn’t work with user names and passwords in Web site addresses URLs (HTTP/S). Though, IE versions 3.0 to 6.0 support this. The following URL syntax may not work in Internet Explorer or in Windows Explorer, http(s)://username:password@mydomain.com Reason: Such URL syntax is used to automatically send username/password to a Web site which requires […]

How to increase file upload limit using .htaccess

Sometimes sever settings do not allow you to upload files more than a fixed limit (usually 2 MB). But, some websites might require allowing files more than this limit. In such cases we need to set some options in httpd.conf configuaretion file. This sometimes is not allowed on shared servers. “.htaccess” file comes to the […]

How to send mail when Googlebot crawls a webpage of your website

How to send an email, as soon as Googlebot crawls a webpage of your website, in PHP? Many of us have always wished to get some kind of intimation as soon as Google (Googlebot to be specific) crawls our websites. Isn’t it? Don’t know if there are any tools available for the same but what […]

HTTP Authentication in URL not working in IE

IE (Internet Explorer) doesn’t work with user names and passwords in Web site addresses URLs (HTTP/S). Though, IE versions 3.0 to 6.0 support this. The following URL syntax may not work in Internet Explorer or in Windows Explorer, http(s)://username:password@mydomain.com Reason: Such URL syntax is used to automatically send username/password to a Web site which requires […]