on air

Create Error 404 Page.

back home » Scripting Tutorials » .htaccess » Create Error 404 Page.

What is Error 404.

An "error 404 page" is a notification page. A browser will load this, when a requested page is for any reason missing on a server or link broken.

You can customize this page, placing links, and information on it. And this will redirect users to the alternative page you'll provide. [Preferably, your "SiteMap"]

Customizing An Error 404 Page.

To customize such a page on your site, you'll first have to create the page to suit your needs. And save it, for example, under notfound.html (or .php, .htm, and so on).

Create a .htaccess file as explained in the intro to .htaccess page with the following code inside the file on a single line: ErrorDocument 404 /notfound.html and upload both files onto your server using FTP.

HTACCESS File And Custom Page Directoty.

Note: If the notfound.html file isn't in the same directory as the .htaccess file.

Let's say you placed it in a folder named pages in your root folder while the .htaccess file also residing directly inside the same root folder.

You'll simply need to edit the code inside the .htaccess file to follow the right path. Which in this case, is the pages' folder, inside your root folder like so:

ErrorDocument 404 /pages /notfound.html

Testing And Troubleshooting.

After uploading both files, type your domain name in a browser [Online] to visit your site.

Try changing a letter in the URL, hit the enter key on your keyboard, and see what will happen.

Normally, the browser has to load your customized "Error 404 page". If not, go back and troubleshoot the whole process as explained from above. Check also the inro to .htaccess page for more details.

.htaccess Error 404.


Man will give you worldly powers, and make you feel on top of all, note this is temporally and could be redrawn at anytime sending you back to the ground floor of life. However, the Lord Almighty, the one and the only rightful ruler of the Universe, blesses everlastingly.


Knowledge is Power, but Power is not Knowledge. Wisdom is the truthful Power that identifies the Knowledge within the man. And only, I repeat 3x. Only the almighty God has the power to bless the man with his Wisdom forever.

To achieve the Lord's blessings, cease not praying daily, asking for his Wisdom, and you'll be blessed abundantly...


Spyera Phone

Spyera Phone version is software that you install on a smart phone to monitor everything happening on the phone. After installation, SPYERA secretly records events (sms, call history, phone book, location, emails, What's App messages, IM, Facebook Chat, Skype, See photos taken and many more...) that happen on the phone and delivers these information to a web account, where you can view these reports 24/7 from any Internet enabled computer or mobile phone. SPYERA also allows you to listen to the surroundings of the target mobile , listen to the phone conversation and to know the location of the device.


Please, Kindly Donate What You Can, Enabling Us Pay Hosting And Domain Costing, And Do More.

Please Donate