-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·49 lines (39 loc) · 1.7 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This file exists for testing purposes only to verify possible bugs on the
# Jekyll Multiple Languages Plugin.
# With the default configuration of the demo website, this file should be copied
# and exist on the website root and only there.
# If this file is not on the root or is in the root of translated websites, this
# means that there is an error.
# BEGIN WordPress
# <IfModule mod_rewrite.c>
# RewriteEngine On
# RewriteBase /
# RewriteRule ^index\.php$ - [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.php [L]
# </IfModule>
# END WordPress
# Manual redirects
# old wordpress
Redirect 301 /blog http://www.raceup.it/blog.html
Redirect 301 /team-2016-combustion http://www.raceup.it/team/members.html
Redirect 301 /team-2016-electric http://www.raceup.it/team/members.html
Redirect 301 /partners-combustion http://www.raceup.it/sponsors/cd.html
Redirect 301 /electric-partners http://www.raceup.it/sponsors/ed.html
Redirect 301 /combustion http://www.raceup.it/cars/cd.html
Redirect 301 /electric http://www.raceup.it/cars/ed.html
Redirect 301 /electricdivision http://www.raceup.it/cars/ed.html
# Fallback
RewriteCond %{REQUEST_URI} !=/blog
RewriteCond %{REQUEST_URI} !=/team-2016-combustion
RewriteCond %{REQUEST_URI} !=/team-2016-electric
RewriteCond %{REQUEST_URI} !=/partners-combustion
RewriteCond %{REQUEST_URI} !=/electric-partners
RewriteCond %{REQUEST_URI} !=/combustion
RewriteCond %{REQUEST_URI} !=/electric
RewriteCond %{REQUEST_URI} !=/electricdivision
# RewriteCond %{HTTP_HOST} ^example.com [NC]
# RewriteRule ^(.*)$ http://www.example2.com/$1 [L,R=301]
# In case of 404 page
ErrorDocument 404 /404.html