diff --git a/hugo/hugo.toml b/hugo/hugo.toml index eb6a5da7..ae907872 100644 --- a/hugo/hugo.toml +++ b/hugo/hugo.toml @@ -2,6 +2,7 @@ baseURL = 'http://localhost/' #baseURL = 'https://www.etlcpp.com/hugo/' languageCode = 'en-gb' title = 'Embedded Template Library' +includeFiles = [".htaccess"] [markup] [markup.highlight] diff --git a/hugo/layouts/404.html b/hugo/layouts/404.html new file mode 100644 index 00000000..2bcef819 --- /dev/null +++ b/hugo/layouts/404.html @@ -0,0 +1,20 @@ + + +
+ + +Sorry, the page you are looking for doesn't exist.
+ Return to Homepage + + diff --git a/hugo/static/.htaccess b/hugo/static/.htaccess new file mode 100644 index 00000000..86c3e9d5 --- /dev/null +++ b/hugo/static/.htaccess @@ -0,0 +1,7 @@ +RewriteEngine On +RewriteBase / +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule (.*) /404.html [L] + +ErrorDocument 404 /404.html