How to Set Up Directories and 404 Pages for Convenient Navigation
You’ve decided to build a website for yourself or your company, but you’re not really sure where to start. It’s one thing to set out to build a web page, but when you’re staring at that blank screen trying to determine what to start with first, an entire website can be very daunting. With this in mind, there are some pages that almost no business website can do without.
- About this Site – information about the site, the author, or the company.
- Help or Support – assistance using the site or the products sold on the site
- What’s New – a listing of what has recently changed on the site
- Archives – archival copies of older articles and information on the site
- Contact – how to contact the site owner or developer
- Search – a search function to find things on the site
- Produces – a listing of all the products and/or services available on the site
Once you have these sections of your site and you know what’s going to be in them then you can start thinking about how to organize your site. Remember, the organization of a website is more than just how it looks in the browser window. If you start out well organized from the beginning, you can save yourself a lot of trouble in the future.
If you’re going to have the above sections of your site, then you should organize your web directory structure to reflect that. For example, if you have a section “About” that talks about your company and what you offer, then you should put that in a directory /about on your web server. For the above sections, I would create the following directories:
Page Not Found
The other thing your site needs to have good organization is a useful “page not found” or 404 pages. This 404 page should have links to all of the major sections of your site as well as information like FAQs or common search terms to help your customers find what they are looking for.
To create a custom 404 page on the Apache webserver:
- create a web page that will be your 404 document
- open your httpd.conf file for editing (you may have to login as root to edit it)
- find the line that reads
ErrorDocument 404 /404.html
- change the /404.html to the URI you would like to display – it can be any file on your webserver
- restart your server
Once you have both useful organization and a 404 page that reflects that organization, your Web site will be that much easier to build. And even if you can’t create a custom 404 page, your organization will make it easier for your readers to find things on your site and so they’ll be less likely to get a 404 page.
About the author: Christopher D Childs works as a review writer for ResumeWriterReviews. It gives him an opportunity to improve his critical and creative thinking skills. Moreover, he keeps up with modern tendencies of employee engagement, motivation, and management.