Trap And Get Notified: A Practical Solution To 404 Errors With PHP - Uploading The Files (Page 4 of 5 )
Using an FTP program, connect to your website and open the folder with which you wish to use the files. I suggest using the root directory. Upload config.php, 404.php and .htaccess using the FTP program. Make sure you use the ASCII transfer mode for the .htaccess file.
If you were unable to create the .htaccess file earlier and you had to save it as htaccess.txt, upload this in the same way as described above. Once the file is uploaded, rename the file to ".htaccess". This will now be accepted as the .htaccess file.
Now to test the code. Type the address of your website and add a path to a file which doesn't exist. You should see the 404 error page we created and you should also receive an email informing you of the error.