An Eternal Quest for Incremental Improvement
To prevent directory listing in Apache, add the following line to .htaccess in the top level of the directory you want to do it.
Options -Indexes
To allow directory listing for specific subdirectories, you can add the following in the .htaccess of the subdirectory to override the parent directory's ...
Here is an one-liner PHP code for URL redirection instantly.
<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
?>
Make sure that you don't do send any HTML before doing this. The following is not going to work.
<html>
...
<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
?>
...
</html>
Whenever my friends asked me about the details of the project that I am working for at Sun Microsystems, I was not able to disclose more ...
I always love the sense of humor that Google has. This time a direction from New York, USA to London, UK. Have a look at the 24th point (highlighted in blue).
One of the most handy features on a GSM phone is the Cell Info display. It shows the name of the current cell that one is hanging out. I was struggling to get it configured on my new Motorola ROKR E6. It was not that straight forward. So, I decided ...
Finally I have decided to put an end to all my frustrations with Nokia 5500 Sport. I have given it to the Nokia Care center to get the keypad replaced. It is going to take 20 days for getting it back. I have decided to sell it off once I ...
It was an embarrassing moment for Indian cricket when they were knocked out from the initial round of World Cup. On records, India has one of the most strong and experienced batting line up. But the reality is totally different. Indian cricketers once again proved that they can't deliver ...