From 4f7ce83630552cac10ac36c29190cfc040ce8e1b Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 22 Oct 2026 16:12:42 -0500 Subject: [PATCH] Add .htaccess for URL rewriting, implement giveaway countdown timer in script.js, and update navigation links to clean paths in index.html. Create new pages for About, Giveaway, and service details with corresponding styles and scripts. --- .htaccess | 28 ++ {html/about => about}/index.html | 84 ++-- css/queries.css | 36 +- css/style.css | 254 ++++++++++ giveaway/index.html | 465 ++++++++++++++++++ index.html | 63 ++- script.js | 47 ++ .../ceramic-coating/index.html | 84 ++-- .../exterior-detailing/index.html | 126 ++--- .../interior-detailing/index.html | 126 ++--- .../paint-protection-film/index.html | 84 ++-- .../vinyl-wrap/index.html | 100 ++-- .../window-tinting/index.html | 84 ++-- sitemap.xml | 14 +- 14 files changed, 1218 insertions(+), 377 deletions(-) create mode 100644 .htaccess rename {html/about => about}/index.html (85%) create mode 100644 giveaway/index.html rename {html/services => services}/ceramic-coating/index.html (83%) rename {html/services => services}/exterior-detailing/index.html (80%) rename {html/services => services}/interior-detailing/index.html (80%) rename {html/services => services}/paint-protection-film/index.html (83%) rename {html/services => services}/vinyl-wrap/index.html (82%) rename {html/services => services}/window-tinting/index.html (83%) diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..9b75112 --- /dev/null +++ b/.htaccess @@ -0,0 +1,28 @@ +Options -MultiViews -Indexes +DirectoryIndex index.html +DirectorySlash Off + + + RewriteEngine On + + # Old /html/... addresses + RewriteRule ^html/services/([^/]+)/?(?:index\.html)?$ /services/$1 [R=301,L] + RewriteRule ^html/(about|giveaway)/?(?:index\.html)?$ /$1 [R=301,L] + + # /index.html -> / + RewriteCond %{THE_REQUEST} \s/+index\.html[\s?] [NC] + RewriteRule ^index\.html$ / [R=301,L] + + # /services/name/index.html, /about/index.html, /giveaway/index.html -> clean path + RewriteCond %{THE_REQUEST} \s/+(services/[^/\s]+|about|giveaway)/index\.html[\s?] [NC] + RewriteRule ^ /%1 [R=301,L] + + # Drop the trailing slash on those same pages + RewriteCond %{THE_REQUEST} \s/+(services/[^/\s]+|about|giveaway)/[\s?] [NC] + RewriteRule ^ /%1 [R=301,L] + + # Serve the folder's index.html while keeping the clean address + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME}/index.html -f + RewriteRule ^(.+?)/?$ $1/index.html [L] + diff --git a/html/about/index.html b/about/index.html similarity index 85% rename from html/about/index.html rename to about/index.html index 064c892..2dba54f 100644 --- a/html/about/index.html +++ b/about/index.html @@ -16,9 +16,9 @@ content="Learn about Enrique Felipe and Sioux Diamond Detailing LLC — a locally owned auto detailing business in Sioux Center, Iowa serving the surrounding area since 2023." /> - - - + + + @@ -27,9 +27,9 @@ rel="stylesheet" /> - - - + + + About Us | Sioux Diamond Detailing @@ -41,79 +41,79 @@ instagram icon facebook icon tiktok icon google icon + + +
+
+
+
+ +

GIVEAWAY

+
+

+ Win a free car detail +

+

+ Fill out the form below for a chance to win a free car detail. +

+

Entries close November 1, 2026.

+
+
+
+
+ 0 + Days +
+
+ 00 + Hours +
+
+ 00 + Minutes +
+
+ 00 + Seconds +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+

ENTRY FORM

+

Coming soon.

+
+
+
+
+ + + + diff --git a/index.html b/index.html index 6df6edf..fbcb3a6 100644 --- a/index.html +++ b/index.html @@ -44,6 +44,21 @@