By admin, on September 11th, 2010%
Rating 3.00 out of 5
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 . . . → Read More: How to increase file upload limit using .htaccess
By admin, on August 27th, 2010%
Rating 2.00 out of 5
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 basic authentication.
A . . . → Read More: HTTP Authentication in URL not working in IE
By admin, on August 17th, 2010%
Rating 3.00 out of 5
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 . . . → Read More: Stop indexing files in a directory using .htaccess
By admin, on August 16th, 2010%
Rating 4.00 out of 5
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 in . . . → Read More: Block robots from accessing webpages using .htaccess
By admin, on August 10th, 2010%
Rating 4.00 out of 5
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 human readable URLs like “livingthings/animals/carnivores”
Redirect missing . . . → Read More: Use .htaccess to rewrite/redirect requests
By admin, on August 6th, 2010%
Rating 4.00 out of 5
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 . . . → Read More: How to send mail when Googlebot crawls a webpage of your website
By admin, on August 6th, 2010%
Rating 3.00 out of 5
How to parse PHP in web pages having extension as .html / .htm?
This can be done using .htaccess file in the directory where you want all your .html files to be treated as php while still showing .html in the address bar.
Create a simple text file. Put the following code in that . . . → Read More: How to parse PHP in html pages
By admin, on July 27th, 2010%
Rating 3.67 out of 5
How to find all files under a directory, having a pattern, in their name or content, in UNIX?
grep command can be used in conjunction with xargs to fetch filenames having some pattern in them.
find /search_dir/ -iname “*.*” -print0 | xargs -0 grep ”PATTERN”
where,
search_dir is the directory where search has to begin from
PATTERN is the . . . → Read More: Find all files having some pattern using grep in UNIX