Skip to content

Commit

Permalink
Fix php-cli server URLs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trustmaster committed Jan 14, 2015
1 parent f154ddc commit 07c9b62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@
exit;
}
// PHP files have priority
if (preg_match('#\.php$#', $REQUEST_FILENAME))
if (preg_match('#\.php$#', $REQUEST_FILENAME) && $REQUEST_FILENAME !== 'index.php')
{
include $REQUEST_FILENAME;
exit;
}
// All the rest goes through standard rewrite gateway
$_GET['rwr'] = $REQUEST_FILENAME;
if ($REQUEST_FILENAME !== 'index.php')
{
$_GET['rwr'] = $REQUEST_FILENAME;
}
unset($REQUEST_FILENAME, $langs, $mt);
}

Expand Down

0 comments on commit 07c9b62

Please sign in to comment.