pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 5fadc2e01e52f8183fc4f379473334316e740239
parent d9ba58c35729c83cc8f1bf93c539193eb92c8700
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 27 Apr 2024 14:12:29 +0200

Add htaccess file

Diffstat:
A.htaccess | 12++++++++++++
M404.html | 8++++----
2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/.htaccess b/.htaccess @@ -0,0 +1,12 @@ +# Default index site +DirectoryIndex index.html README.md.html readme.md.html README.txt.html readme.txt.html log.html + +# Set 404 Document +ErrorDocument 404 /404.html + +# Disallow file browsing +Options -Indexes + +# Disallow browsing of certain sub-directories (redirect to 404) +RedirectMatch 404 ^/.git/.*$ +RedirectMatch 404 ^/bin/.*$ diff --git a/404.html b/404.html @@ -4,12 +4,12 @@ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Page not found</title> -<link rel="icon" type="image/png" href="favicon.png" /> -<link rel="stylesheet" type="text/css" href="style.css" /> +<link rel="icon" type="image/png" href="/favicon.png" /> +<link rel="stylesheet" type="text/css" href="/style.css" /> </head> <body> <table> -<tr><td><img src="logo.png" alt="" width="32" height="32" /></td> +<tr><td><img src="/logo.png" alt="Logo" width="32" height="32" /></td> <td><span class="desc">Page not found!</span></td></tr><tr><td></td><td> </td></tr> </table> @@ -17,7 +17,7 @@ <div id="content"> <h1>Ops...</h1> <p>The requested site was not found.</p> -<p>Please check the overviewpage: <a href="/index.html">src.jayvii.de</a>.</p> +<p>Please check the <a href="/index.html">overview page</a>.</p> <p>If you think, this is an error, feel free to <a href="mailto:&#106;&#097;&#121;&#118;&#105;&#105;&#032;[&#065;&#084;]&#032;&#112;&#111;&#115;&#116;&#101;&#111;&#032;[&#068;&#079;&#084;]&#032;&#100;&#101;">send me an E-Mail</a>.</p> </div> </body>