forked from michaelthedev/synote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
26 lines (21 loc) · 888 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
#// +------------------------------------------------------------------------+
# // | @author : Michael Arawole (Logad Networks)
# // | @author_url : https://www.logad.net
# // | @author_email : [email protected]
# // | @date : 17 Jul, 2022 11:02 AM
# // +------------------------------------------------------------------------+
# // | 2022 Logad Networks (Open source project)
# // +------------------------------------------------------------------------+
## Important
RewriteEngine on
## Disable directory lisrrting
Options -Indexes
# HTTPS ##
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
## Block direct access to backend folder
RewriteRule ^backend/(.*)$ ./ [F]
# Rewrite all paths to frontend folder
RewriteCond %{REQUEST_URI} !/frontend/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ frontend/$1 [L]