mirror of
https://git.coop/cotech/website.git
synced 2025-12-23 18:07:32 +00:00
add redirects to .htaccess file
This commit is contained in:
11
.htaccess
11
.htaccess
@ -20,6 +20,12 @@ Redirect /co-op/graphics-coop https://www.cotech.coop/co-op/form-and-function
|
|||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteCond %{HTTP_HOST} ^coops\.tech$
|
RewriteCond %{HTTP_HOST} ^coops\.tech$
|
||||||
|
RewriteCond %{HTTP_HOST} ^www\.coops\.tech$
|
||||||
|
RewriteCond %{HTTP_HOST} ^static\.coops\.tech$
|
||||||
|
RewriteCond %{HTTP_HOST} ^www\.static\.coops\.tech$
|
||||||
|
RewriteCond %{HTTP_HOST} ^cotech\.uk$
|
||||||
|
RewriteCond %{HTTP_HOST} ^cotech\.office\.workers\.coop$
|
||||||
|
RewriteCond %{HTTP_HOST} ^cotech\.coop$
|
||||||
RewriteRule ^/?(.*) https://www.cotech.coop/$1 [R,L]
|
RewriteRule ^/?(.*) https://www.cotech.coop/$1 [R,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
# Redirect HTTP to HTTPS
|
# Redirect HTTP to HTTPS
|
||||||
@ -34,8 +40,9 @@ Redirect /co-op/graphics-coop https://www.cotech.coop/co-op/form-and-function
|
|||||||
# https://stackoverflow.com/questions/24144552/how-to-set-hsts-header-from-htaccess-only-on-https
|
# https://stackoverflow.com/questions/24144552/how-to-set-hsts-header-from-htaccess-only-on-https
|
||||||
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
|
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
|
||||||
# Directory Listings
|
# Directory Listings
|
||||||
HeaderName /top.html
|
# The following two files don't exist
|
||||||
ReadmeName /bot.html
|
# HeaderName /top.html
|
||||||
|
# ReadmeName /bot.html
|
||||||
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
|
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=* DescriptionWidth=*
|
||||||
IndexOptions Charset=UTF-8 SuppressHTMLPreamble XHTML TrackModified IconsAreLinks
|
IndexOptions Charset=UTF-8 SuppressHTMLPreamble XHTML TrackModified IconsAreLinks
|
||||||
IndexOptions SuppressDescription
|
IndexOptions SuppressDescription
|
||||||
|
|||||||
Reference in New Issue
Block a user