Archive for the 'Web' Category

How to avoid duplicate content using .htaccess

Tuesday, February 23rd, 2010

If domain.com and www.domain.com has same content, Google will think it as duplicate content. However, you can use .htaccess to avoid duplicate content. Solution is to redirect your visitor to one of the domain, either with www or without www. The trick below is a simple yet effective way to avoid duplicate content on the [...]

How to remove #more tag in Wordpress

Tuesday, February 2nd, 2010

By default Wordpress post listing will embed with #more tag. If you do not like the #more tag like me, you can remove the #more tag using wordpress filter. In case you do not know what is #more tag, here’s the explanation. Whenever user click on the “read more” link at the post listing, it [...]

How to block access to certain file types using .htaccess

Tuesday, January 26th, 2010

It’s a good practice to block visitor access to file types that is not being used in web server. You can configure .htaccess to block access to specific file types (eg: inc, bak, log, sh). It’s common for webmaster to edit files at the server and rename the old filename to .bak. If your file [...]