-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
29 lines (25 loc) · 948 Bytes
/
.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
RewriteEngine On
RewriteBase /
ErrorDocument 404 /404.html
RewriteRule ^(_js)($|/) - [L]
Options -Indexes
# If (SITE A DOMAIN or SITE A SUBDOMAIN)
RewriteCond %{HTTP_HOST} ^www\.maratropa\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^maratropa\.com$ [NC]
# make sure we haven't already rewritten this URI
RewriteCond %{REQUEST_URI} !/maratropa/index.php
# don't rewrite if the resource already exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# rewrite
RewriteRule ^(.*)$ /index.php?user=$1 [L,QSA]
# IF !(SITE A DOMAIN or SITE A SUBDOMAIN)
RewriteCond %{HTTP_HOST} !^www\.maratropa\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} !^maratropa\.com$ [NC]
# make sure we haven't already rewritten this URI
RewriteCond %{REQUEST_URI} !/index.php
# don't rewrite if the resource already exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# rewrite
RewriteRule ^(.*)$ /maratropa/index.php?user=$1 [L,QSA]