Skip to content
Showing with 3 additions and 0 deletions.
  1. +3 −0 index.php
View
3 index.php
@@ -55,6 +55,9 @@
*/
if($url && file_exists($fileName)) {
$fileURL = (dirname($_SERVER['SCRIPT_NAME'])=='/'?'':dirname($_SERVER['SCRIPT_NAME'])) . '/' . $url;
+ if(isset($_SERVER['QUERY_STRING'])) {
+ $fileURL .= '?' . $_SERVER['QUERY_STRING'];
+ }
header($_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently');
header("Location: $fileURL");
die();

0 comments on commit 0761de7

Please sign in to comment.
Something went wrong with that request. Please try again.