forked from SkyPHP/skyphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
16 lines (13 loc) · 795 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SkyPHP .htaccess
# Your website must have this file in its root web folder
Options +FollowSymlinks
RewriteEngine on
# Apache must be compiled with gzip or deflate for transmission compression to work for the following file types
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml
AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/x-js text/x-javascript
AddOutputFilter DEFLATE js css htm html xml
# If the requested file or folder is not found, SkyPHP will check multiple codebases for the correct file
# Also, we are blocking php files that are in the pages folder from being accessed directly
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} /pages/(.*)\.php$
RewriteRule ^(.+)$ /index.php/$1 [L]