-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtaccess.example
More file actions
26 lines (21 loc) · 776 Bytes
/
htaccess.example
File metadata and controls
26 lines (21 loc) · 776 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
25
26
<FilesMatch "(?i)\.(php[0-9]?|phtml)$">
Require all denied
</FilesMatch>
<FilesMatch "index.php">
Require all granted
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
##
## You may need to uncomment (remove #) the following line for some hosting environments,
## if you have installed to a subdirectory, enter the name here also.
## Example: for https://site.com enter: "/", for https://site.com/something enter: "/something/"
##
## RewriteBase /
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# php -- END cPanel-generated handler, do not edit