Commit eb0479d 1 parent d3148e8 commit eb0479d Copy full SHA for eb0479d
File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
Options -Indexes
2
2
RewriteEngine on
3
- RewriteCond %{REQUEST_FILENAME} !-d
4
- RewriteCond %{REQUEST_FILENAME} \.php -f
5
- RewriteRule ^(.*)$ $1.php
3
+
4
+ # send all trafic to the root framework file
6
5
RewriteCond %{REQUEST_FILENAME} !-f
7
6
ReWriteRule ^(.*)$ WebFiori.php [L,QSA]
8
- # append authorization header
7
+
8
+ # append authorization header if not exist
9
9
RewriteCond %{HTTP:Authorization} ^(.*)
10
10
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
11
- RedirectMatch 403 ^/.+\.(tkns)$
12
- DirectoryIndex WebFiori.php
11
+
13
12
# disable opcache
14
13
# php_flag opcache.enable Off
15
14
16
- # used for ssl redirect
17
- # RewriteCond %{SERVER_PORT} 80
18
- # RewriteRule ^(.*)$ https://www.programmingacademia.com/$1 [R=301,L]
19
-
20
15
# allow CORS
21
16
<IfModule mod_headers.c>
22
17
Header set Access-Control-Allow -Origin " *"
You can’t perform that action at this time.
0 commit comments