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
- Know html and css coding.
- HTML editor.
- Access to the web directories from external hosts on the LAN over netbios or nfs.
- Firefox with plugins for webdesigning, html-validator.
Steps
- Create the subdomain in the local DNS server you want to use.
- Add a virtualhost to the server configuration.
- Create the directories for it.
- Add directories to the website root for:
- Global images -> images/
- Stylesheets -> css/
- Javascripts -> js/
- .well-known -> .well-known/
- Create a layout for the article pages and store it as a template. -> article.html
- Create a layout for the menu pages and store it as a template. -> menu.html
- Design the layout for the homepage.
- Create a house style.
- Create the stylesheet.
- Create a logo.
- Create the homepage.
- Create special files:
- robots.txt -> /robots.txt
- .htaccess -> /.htaccess
- 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.