Showing posts with label 404.. Show all posts
Showing posts with label 404.. Show all posts
Friday, August 21, 2015
How to Create Custom Error Pages
Create your custom error page. Your custom error page can be whatever you'd like it to be -- funny, whimsical or apologetic. Create the 404 page in HTML and/or CSS code or use website design software like Adobe's Dreamweaver or Microsoft's Expression Studio.
Save your new error page as '404.html'. Save it into a folder or area on your computer where you can find it later to upload it to your website.
Log in to your hosting site and locate the .htaccess file. It should be in the main directory of your website, i.e., 'http://www.yourwebsitename.com/.htaccess."
Download the .htaccess file onto the computer or open it if your website has editing capabilities. If you downloaded it onto the computer, open it in a word processing program like Notepad.
Add the line 'ErrorDocument 404 http://www.yourwebsitename.com/404.html" to the document.
Save the .htaccess file and upload it back to your site (if downloaded).
Upload your '404.html' webpage to your domain, keeping it in the main directory of your site, e.g., 'http://www.yourwebsitename.com/404.html."
VPS Hosting
Labels:
404.,
Dreamweaver,
Expression,
hosting,
html,
Log,
Microsoft,
Save,
Studio,
upload
Subscribe to:
Posts (Atom)