-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
42 lines (28 loc) · 852 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
30
31
32
33
34
# Method Config
<LimitExcept GET POST DELETE PUT OPTIONS>
Order Allow,Deny
Deny from all
</LimitExcept>
# Prevent directory listings
Options All -Indexes
# Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# URL Rewrite
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule keys/gen generate_key.php [QSA,NC,L]
RewriteRule api/admin api/application/app.php [QSA,NC,L]
# app = 24h Fitness Gym
RewriteCond %{HTTP_HOST} =localhost [OR]
RewriteCond %{HTTP_HOST} =gphp.loc [OR]
RewriteCond %{HTTP_HOST} =domain3.com [OR]
RewriteCond %{REMOTE_ADDR} =^192\.168\.0\.1$
RewriteRule api/azeem/(.*)$ api/generic/api.php [QSA,NC,L]
</IfModule>