forked from EugeneKay/cm-xxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
24 lines (20 loc) · 715 Bytes
/
.htaccess
File metadata and controls
24 lines (20 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# .htaccess
# cm-xxx
#
## Enable URL rewriting
RewriteEngine On
RewriteBase /
## Some redirects
# Github
RewriteCond %{REQUEST_URI} ^(?:/?)(g(it(hub)?)?|s(ource)?)$ [NC]
RewriteRule ^(.*)$ https://github.xxx/EugeneKay/cm-xxx [L,R=307]
## Correct Domain
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{HTTP_HOST} !^(\w{1,16}\.){0,2}cyanogenmod\.xxx$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(\w{1,16}\.){0,1}www\.cyanogenmod.xxx$ [NC]
RewriteRule ^(.*)$ http://cyanogenmod.xxx/$1 [L,R=307]
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^(\w{1,16}\.){0,2}cyanogenmod\.xxx$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(\w{1,16}\.){0,1}www\.cyanogenmod.xxx$ [NC]
RewriteRule ^(.*)$ https://cyanogenmod.xxx/$1 [L,R=307]