Files
nhgooi.nl/public/.htaccess
2025-07-15 15:45:09 +02:00

33 lines
903 B
ApacheConf
Executable File

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# 6fm -> nhgooi
RewriteCond %{HTTP_HOST} ^(www\.)6fm.nl(.*)$ [NC]
RewriteRule ^(.*)$ https://nhgooi.nl/$2 [R=301,L]
RewriteCond %{HTTP_HOST} nhgooigemist.nl [NC]
RewriteRule ^(.*)$ https://nhgooi.nl/gemist [R=301,L]
# Remove www.
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>