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 @@