From b3028be9897fa27854c4bcb8381c22f16e1eee4b Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 14 Oct 2026 16:44:38 -0500 Subject: [PATCH] Add .directory and .htaccess files; updated navigation links in HTML files to use root-relative paths --- .directory | 2 ++ .htaccess | 19 +++++++++++++++++++ about.html | 20 ++++++++++---------- faq.html | 20 ++++++++++---------- img/gallery/shelves2.jpg | Bin 95135 -> 73762 bytes index.html | 20 ++++++++++---------- volunteer.html | 20 ++++++++++---------- 7 files changed, 61 insertions(+), 40 deletions(-) create mode 100644 .directory create mode 100644 .htaccess diff --git a/.directory b/.directory new file mode 100644 index 0000000..b1d47ae --- /dev/null +++ b/.directory @@ -0,0 +1,2 @@ +[Desktop Entry] +Icon=/home/blake/Documents/Client Files/Hope Food Pantry/Hope Food Pantry - Sunburst.png diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..6afaffe --- /dev/null +++ b/.htaccess @@ -0,0 +1,19 @@ +RewriteEngine On + +# /about/ → /about (real folders such as /img/ and /css/ stay as they are) +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.+)/$ /$1 [R=301,L] + +# /index.html → / +RewriteCond %{THE_REQUEST} \s/+index\.html[\s?] [NC] +RewriteRule ^index\.html$ / [R=301,L,QSA] + +# /about.html → /about +RewriteCond %{THE_REQUEST} \s/+(.+?)\.html[\s?] [NC] +RewriteRule ^ /%1 [R=301,L,QSA] + +# /about → about.html +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME}.html -f +RewriteRule ^(.+?)/?$ $1.html [L] diff --git a/about.html b/about.html index 4905549..71de4f1 100644 --- a/about.html +++ b/about.html @@ -43,17 +43,17 @@