1
0
website/.htaccess

34 lines
1.0 KiB
ApacheConf
Raw Permalink Normal View History

2022-05-18 09:43:34 +00:00
ServerSignature off
#Deny displaying directory tree
IndexIgnore */*
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.opiskelijaradio.fi$ [OR]
RewriteCond %{HTTP_HOST} ^opiskelijaradio.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.opiskelijaradio.com$
RewriteRule ^(.*)$ https://opiskelijaradio.fi/$1 [R=301,QSA,NC,L]
RewriteCond %{HTTP_HOST} ^www.h.opiskelijaradio.fi$ [OR]
RewriteCond %{HTTP_HOST} ^h.opiskelijaradio.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.h.opiskelijaradio.com$
RewriteRule ^(.*)$ https://h.opiskelijaradio.fi/$1 [R=301,QSA,NC,L]
RewriteCond %{HTTP_HOST} ^www.y.opiskelijaradio.fi$ [OR]
RewriteCond %{HTTP_HOST} ^y.opiskelijaradio.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.y.opiskelijaradio.com$
RewriteRule ^(.*)$ https://y.opiskelijaradio.fi/$1 [R=301,QSA,NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ / [R=307,NC,L,QSA]
</IfModule>
#(c)2020-2022 Waren Group
#Last updated: 24.4.2022