Rob's web

Static websites

Now the basic webserver is running its time to add a website with static pages. You can use it like this website.

Websites that don't use a CMS are much faster. The PHP scripting costs processor time.

A CMS is not making the menus and articles easier. So no reason to use it.

A CMS stores it data in an SQL database. So you can't edited outside the CMS.

The default host is build with static pages.

Create a private website that you can use for testing. Use a subdomain not www.

Prerequisites

  1. Know html and css coding.
  2. HTML editor.
  3. Access to the web directories from external hosts on the LAN over netbios or nfs.
  4. Firefox with plugins for webdesigning, html-validator.

Steps

  1. Create the subdomain in the local DNS server you want to use.
  2. Add a virtualhost to the server configuration.
  3. Create the directories for it.
  4. Add directories to the website root for:
    1. Global images -> images/
    2. Stylesheets -> css/
    3. Javascripts -> js/
    4. .well-known -> .well-known/
  5. Create a layout for the article pages and store it as a template. -> article.html
  6. Create a layout for the menu pages and store it as a template. -> menu.html
  7. Design the layout for the homepage.
  8. Create a house style.
  9. Create the stylesheet.
  10. Create a logo.
  11. Create the homepage.
  12. Create special files:
    1. robots.txt -> /robots.txt
    2. .htaccess -> /.htaccess
  13. Add files to the .well-known directory.

We have now a homepage, menu-page and article-page. The stylesheet is created when we designed these pages.

We first need a logo. From this file we create the favicon.ico and apple-touch-icons.