-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
29 lines (25 loc) · 1.16 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
# File: .htaccess #
# Author: Wessex Lifts <marketing@wessexlifts.co.uk> #
# Tag Added: 2022-03-08 #
# Desciption: Forward Pages, Ignoring Certain Ones #
# -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
# -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
# REWRITE / FORWARD DOMAIN:
# Forward the domain, automatically, to the .co.uk
# version of the website (might need reviewing).
<IfModule mod_rewrite.c>
# Rewrite On
RewriteEngine on
# Ignore Redirecting the Following...
RewriteRule ^(ca) - [l]
RewriteRule ^(canada) - [l]
RewriteRule ^(EmailSignature) - [l]
RewriteRule ^(eu) - [l]
RewriteRule ^(test) - [l]
# Bulk Redirect
#RewriteRule (.*) https://wessexlifts.co.uk/? [R=301,L]
#This was the proper way of doing it:
RewriteRule ^(.*)$ https://wessexlifts.co.uk/$1 [R=301,L]
</IfModule>
# -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-