From: Stephen Cameron Date: Fri, 7 Oct 2022 16:11:39 +0000 (+0200) Subject: Fix console errors, re-export site and adjust redirects. Wait #5504 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=290576de7c35ac27b8da582709849de93a7941b1;p=tecintex.git Fix console errors, re-export site and adjust redirects. Wait #5504 @0.5 --- 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 @@