From 290576de7c35ac27b8da582709849de93a7941b1 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Fri, 7 Oct 2022 18:11:39 +0200 Subject: [PATCH] Fix console errors, re-export site and adjust redirects. Wait #5504 @0.5 --- .htaccess | 9 +++++---- company.html | 6 ++++-- contact.html | 6 ++++-- credits.html | 6 ++++-- css/tec-dev.webflow.css | 9 +++++---- index.html | 10 ++++------ legal-mentions.html | 6 ++++-- process-form.php | 7 +++++++ services.html | 6 ++++-- 9 files changed, 41 insertions(+), 24 deletions(-) mode change 100644 => 100755 company.html mode change 100644 => 100755 contact.html mode change 100644 => 100755 credits.html mode change 100644 => 100755 css/tec-dev.webflow.css mode change 100644 => 100755 index.html mode change 100644 => 100755 legal-mentions.html mode change 100644 => 100755 services.html diff --git a/.htaccess b/.htaccess index 485a497..d781a99 100644 --- a/.htaccess +++ b/.htaccess @@ -2,13 +2,14 @@ RewriteEngine On RewriteCond %{HTTP_HOST} ^tecintex.com$ RewriteRule ^(.*)$ https://www.tecintex.com/$1 [R=301,L] +# remove index from the end of URLs +RewriteRule ^index$ / [R=301] +RewriteRule ^index\.html$ / [R=301] + # remove .html, use THE_REQUEST to prevent infinite loops RewriteCond %{THE_REQUEST} \s/+(.+?)\.html[\s?] [NC] RewriteRule ^ /%1 [R=301,NE,L] -# remove index from the end of URLs -RewriteRule (.*)index$ $1 [R=301] - # remove slash if not directory RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} /$ @@ -17,4 +18,4 @@ RewriteRule (.*)/ $1 [R=301] # add .html to access file, but don't redirect (internal redirect only) RewriteCond %{REQUEST_FILENAME}.html -f RewriteCond %{REQUEST_URI} !/$ -RewriteRule (.*) $1.html [L] \ No newline at end of file +RewriteRule (.*) $1.html [L] diff --git a/company.html b/company.html old mode 100644 new mode 100755 index cd1749d..ed45316 --- a/company.html +++ b/company.html @@ -1,4 +1,5 @@ - + + @@ -12,6 +13,7 @@ + @@ -256,7 +258,7 @@