Posts Tagged ‘technique’

How to disable context menu in browsers ?

Today, I would like to share a fairly simple technique to disable right click menu of the website. I was using around 10-15 lines of JavaScript code to disable the menu that appears on the right click on the browser. Full story

Hide .php extension with url rewriting using .htaccess

Last time I've written an article about hiding php file extension where I've showed you how you can use .html or .asp extension of file instead of .php extension. But there was one flaw in that technique you have had to change the file extension explicitly but in this post I'm going to show you how to rewrite the URL instead of renaming the file extension Using this technique you will see product.html in the address bar of the browser but the actual file name remains product.php and you don't need to rename the file extension. Furthermore you can rewrite the URL like product.php?id=5 to product-5.html. Full story
Copyright © 2014 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.