File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
<IfModule mod_rewrite.c>
2
2
RewriteEngine On
3
3
4
+ # Force www
5
+ # RewriteCond %{HTTP_HOST} ^websitedomain.com [NC]
6
+ # RewriteRule ^(.*)$ https://www.websitedomain.com/$1 [L,R=301,NC]
7
+
8
+ # Redirect www to non www
9
+ # RewriteCond %{HTTP_HOST} ^www.websitedomain.com [NC]
10
+ # RewriteRule ^(.*)$ https://websitedomain.com/$1 [L,R=301]
11
+
4
12
# Send would-be 404 requests to Craft
5
13
RewriteCond %{REQUEST_FILENAME} !-f
6
14
RewriteCond %{REQUEST_FILENAME} !-d
7
15
RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC]
8
16
RewriteRule (.+) index.php?p=$1 [QSA,L]
9
17
10
- # Force www
11
- # RewriteCond %{SERVER_PORT} ^443$
12
- # RewriteCond %{HTTP_HOST} ^vsa.org.uk$
13
- # RewriteRule (.*) https://www.websitedomain.com/$1 [R=301,L]
14
-
15
- # Redirect www to non www
16
- # RewriteCond %{HTTP_HOST} ^www.thetechforce.co.uk [NC]
17
- # RewriteRule ^(.*)$ http://www.websitedomain.com/$1 [L,R=301]
18
-
19
18
# Remove trailing slash from URL
20
19
# RewriteCond %{REQUEST_FILENAME} !-d
21
20
# RewriteCond %{REQUEST_URI} (.+)/$
You can’t perform that action at this time.
0 commit comments