Skip to content

Commit eb0479d

Browse files
committed
Update .htaccess
1 parent d3148e8 commit eb0479d

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/.htaccess

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
Options -Indexes
22
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
65
RewriteCond %{REQUEST_FILENAME} !-f
76
ReWriteRule ^(.*)$ WebFiori.php [L,QSA]
8-
#append authorization header
7+
8+
#append authorization header if not exist
99
RewriteCond %{HTTP:Authorization} ^(.*)
1010
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
11-
RedirectMatch 403 ^/.+\.(tkns)$
12-
DirectoryIndex WebFiori.php
11+
1312
#disable opcache
1413
#php_flag opcache.enable Off
1514

16-
#used for ssl redirect
17-
#RewriteCond %{SERVER_PORT} 80
18-
#RewriteRule ^(.*)$ https://www.programmingacademia.com/$1 [R=301,L]
19-
2015
#allow CORS
2116
<IfModule mod_headers.c>
2217
Header set Access-Control-Allow-Origin "*"

0 commit comments

Comments
 (0)