From 765996e6df0748264176224748403a566d5add78 Mon Sep 17 00:00:00 2001 From: Andre Cobham Date: Tue, 9 Jun 2026 13:50:15 +0200 Subject: [PATCH] Expand locations to 14, update service slugs, dynamic sitemap and footer - Add 8 new location pages: Cheektowaga, Depew, Grand Island, Hamburg, Kenmore, Orchard Park, Tonawanda, West Seneca (locations.sqlite) - Update service slugs to floor-* pattern; repair -> restoration (services.sqlite) - Replace static sitemap.xml with dynamic sitemap.php (35 URLs, all routes) - Dynamic footer location list from SQLite (no more hardcoded links) - Reviews page: schema.org AggregateRating + Review from testimonials.sqlite - Expand schema.org areaServed to 14 cities on all pages - Add Elfsight Google Reviews widget to reviews page - Update blog.sqlite content - Drop Dockerfile COPY for deleted sitemap.xml --- Dockerfile | 1 - infra/nginx.conf | 8 ++- sitemap.xml | 105 --------------------------------- src/api/components/_footer.php | 14 +++-- src/api/data/blog.sqlite | Bin 12288 -> 49152 bytes src/api/data/locations.sqlite | Bin 36864 -> 73728 bytes src/api/data/services.sqlite | Bin 28672 -> 36864 bytes src/api/sitemap.php | 58 ++++++++++++++++++ src/api/templates/page.php | 37 +++++++++++- 9 files changed, 107 insertions(+), 116 deletions(-) delete mode 100755 sitemap.xml create mode 100755 src/api/sitemap.php diff --git a/Dockerfile b/Dockerfile index ed6c80e..f1b8582 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,6 @@ RUN chmod +x /entrypoint.sh COPY assets /var/www/html/assets/ COPY src /var/www/html/src/ COPY robots.txt /var/www/html/robots.txt -COPY sitemap.xml /var/www/html/sitemap.xml COPY 404.html /var/www/html/404.html COPY 500.html /var/www/html/500.html COPY .env /var/www/html/.env diff --git a/infra/nginx.conf b/infra/nginx.conf index dfd6080..9daea1c 100755 --- a/infra/nginx.conf +++ b/infra/nginx.conf @@ -42,7 +42,13 @@ http { client_max_body_size 16k; location = /robots.txt { access_log off; try_files $uri =404; } - location = /sitemap.xml { access_log off; try_files $uri =404; } + location = /sitemap.xml { + access_log off; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /var/www/html/src/api/sitemap.php; + fastcgi_param QUERY_STRING ""; + fastcgi_pass 127.0.0.1:9000; + } location = /404.html { internal; } location = /500.html { internal; } diff --git a/sitemap.xml b/sitemap.xml deleted file mode 100755 index 2c38c49..0000000 --- a/sitemap.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - https://floorithardwoodfloors.com/ - 2026-05-31 - weekly - 1.0 - - - https://floorithardwoodfloors.com/about/ - 2026-05-31 - monthly - 0.8 - - - https://floorithardwoodfloors.com/contact/ - 2026-05-31 - monthly - 0.9 - - - https://floorithardwoodfloors.com/reviews/ - 2026-05-31 - weekly - 0.8 - - - https://floorithardwoodfloors.com/blog/ - 2026-05-31 - weekly - 0.7 - - - https://floorithardwoodfloors.com/services/ - 2026-05-31 - monthly - 0.9 - - - https://floorithardwoodfloors.com/services/floor-installation/ - 2026-05-31 - monthly - 0.85 - - - https://floorithardwoodfloors.com/services/floor-refinishing/ - 2026-05-31 - monthly - 0.85 - - - https://floorithardwoodfloors.com/services/floor-restoration/ - 2026-05-31 - monthly - 0.85 - - - https://floorithardwoodfloors.com/services/floor-sanding/ - 2026-05-31 - monthly - 0.85 - - - https://floorithardwoodfloors.com/locations/ - 2026-05-31 - monthly - 0.8 - - - https://floorithardwoodfloors.com/locations/buffalo/ - 2026-05-31 - monthly - 0.85 - - - https://floorithardwoodfloors.com/locations/amherst/ - 2026-05-31 - monthly - 0.8 - - - https://floorithardwoodfloors.com/locations/williamsville/ - 2026-05-31 - monthly - 0.8 - - - https://floorithardwoodfloors.com/locations/clarence/ - 2026-05-31 - monthly - 0.8 - - - https://floorithardwoodfloors.com/locations/east-amherst/ - 2026-05-31 - monthly - 0.8 - - - https://floorithardwoodfloors.com/locations/lancaster/ - 2026-05-31 - monthly - 0.8 - - diff --git a/src/api/components/_footer.php b/src/api/components/_footer.php index 9b37561..9d717f1 100755 --- a/src/api/components/_footer.php +++ b/src/api/components/_footer.php @@ -37,12 +37,14 @@ + +
+ +
+