M
M
Morozov_Evgeny2016-03-10 23:51:39
CMS
Morozov_Evgeny, 2016-03-10 23:51:39

How to make a static website using a static site generator?

Hey!
I thought about making a website. From two pages. Need super performance and fast response.
I was advised to take a look at flat-file cms and static site generators.
The essence of the problem.
There is a domain: xyz.com. It should lead to the finished html page. I make it by hand myself. This page has a link to the second page. The second page is also ready-made html. That is, I do not need cms, a database. Thus, the site loading speed should be very fast, due to the lack of request processing on the cms and database side.
How it is better to implement it?
It is necessary that the address bar does not display the page name of the page.html type, but only page. The main page should simply have the address xyz.com.
I'm not a teapot, but I'm not a pro either. If it is possible, explain without editing htaccess and the hemorrhoids are done. But don't offer wix-like crap either, please.
And separately for static site generators, like jekull, hugo, middleman. Do they need to be uploaded to the hosting somehow? Do they need my sql? Do they have minimum PHP version requirements? Will there be an option to hide the .html in the page name?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-03-11
@mais64

Already on the toaster

RewriteEngine On
RewriteCond %{REQUEST_URI} ! \.html$
RewriteCond %{REQUEST_URI} ! /$
RewriteRule ^(.*)$ $1.html

in htaccess. A call to /about will open /about.html, for example
This is the easiest way

M
Mikhail Lyalin, 2016-03-11
@mr_jok

fuck "generators" if you just need to link two html and reshape the link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question