[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
repository_afbs
/
[
Home
]
File: .htaccess
# .htaccess RewriteEngine On # Force HTTPS RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] # Remove index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] # SEO Friendly URLs RewriteRule ^thesis/([0-9]+)/([a-zA-Z0-9-]+)$ views/thesis/detail.php?id=$1 [L,QSA] RewriteRule ^category/([a-zA-Z0-9-]+)$ views/thesis/list.php?category=$1 [L,QSA] RewriteRule ^author/([0-9]+)/([a-zA-Z0-9-]+)$ views/thesis/list.php?author=$1 [L,QSA] RewriteRule ^download/([0-9]+)$ user/download-thesis.php?id=$1 [L,QSA] # Security Headers Header set X-Content-Type-Options "nosniff" Header set X-Frame-Options "SAMEORIGIN" Header set X-XSS-Protection "1; mode=block" # Cache Control <FilesMatch "\.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|eot)$"> Header set Cache-Control "max-age=2592000, public" </FilesMatch> # Compress Files <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json </IfModule> # Block Access to Sensitive Files <FilesMatch "\.(htaccess|htpasswd|ini|log|sh|sql|bak|config)$"> Order Allow,Deny Deny from all </FilesMatch> # Custom Error Pages ErrorDocument 404 /views/error/404.php ErrorDocument 403 /views/error/403.php ErrorDocument 500 /views/error/500.php