mod_rewrite rule fixed #57

This commit is contained in:
Chris Croome 2019-06-20 07:05:19 +01:00
parent d84891f2ec
commit f833c8f0cd

View File

@ -14,6 +14,7 @@ AddOutputFilter DEFLATE css
AddOutputFilter DEFLATE js AddOutputFilter DEFLATE js
# Canonical URLs redirect to the domain with a www # Canonical URLs redirect to the domain with a www
<IfModule mod_rewrite.c> <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^coops\.tech$ RewriteCond %{HTTP_HOST} ^coops\.tech$
RewriteRule ^/?(.*) https://www.coops.tech/$1 [R,L] RewriteRule ^/?(.*) https://www.coops.tech/$1 [R,L]
<IfModule> <IfModule>