/diagnostics.php/diagnostics.php/var/www/htmlIf these links work, mod_rewrite is working correctly:
IF you see this page via http://localhost/qasranet/diagnostics.php
→ App is in a subdirectory → TWO options:
OPTION A (Recommended): Use Laragon virtual host
1. In Laragon → Menu → Apache → sites-enabled → add:
qasranet.test → C:\laragon\www\qasranet
2. OR: Laragon auto-creates *.test domain for each folder
→ Visit http://qasranet.test/
OPTION B: Fix subdirectory routing
→ Edit index.php, change this line in AppRouter::dispatch():
$path = parse_url($uri, PHP_URL_PATH);
→ Add below it:
$base = dirname($_SERVER['SCRIPT_NAME']);
if ($base !== '/' && str_starts_with($path, $base)) {
$path = substr($path, strlen($base));
}
ALSO: Make sure mod_rewrite is enabled in Laragon:
Menu → Apache → httpd.conf → uncomment:
LoadModule rewrite_module modules/mod_rewrite.so
AND in your VHost or httpd.conf, ensure:
AllowOverride All