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.

This commit is contained in:
blake committed 2026-10-22 16:12:42 -05:00
1 parent 3f3de24508
commit 4f7ce83630
14 files changed
+1218 -377

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
Options -MultiViews -Indexes
DirectoryIndex index.html
DirectorySlash Off
<IfModule mod_rewrite.c>
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]
</IfModule>