SERVER_NAME: mitotem.cc
REQUEST_URI: /routing_test.php
SCRIPT_NAME: /routing_test.php
DOCUMENT_ROOT: /home/totem/public_html
--- Routing test ---
Parsed URI: /routing_test.php
Warning: file_get_contents(/home/totem/public_html/.htaccess): Failed to open stream: No such file or directory in /home/totem/public_html/routing_test.php on line 17
Root .htaccess:
Totem .htaccess:
RewriteEngine On
RewriteBase /totem/
# Redirect Trailing Slashes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
# Security Headers
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
# Prevent directory listing
Options -Indexes