.htaccess is a better method. However following simple method will also work. 1. Save following code to index.php <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.example.com/somefile.exe" ); ?> PHP: 2. Make a folder with the name thisismyfile under your domain root 3. Put the index.php that you have just saved inside the folder