Commit 5c5112d3 authored by David Libeau's avatar David Libeau

Fix bug

parent 6874ff68
RewriteEngine On
RewriteRule "^(.*)$" "app.php?" [L]
RewriteRule "^(.*)$" "app.php?q=$1" [L,QSA]
\ No newline at end of file
......@@ -15,17 +15,8 @@ if($serverEnv!="dev"){
require("autoload.php");
if(isset($_SERVER["REQUEST_URI"]) && $_SERVER["REQUEST_URI"]!=""){
$q=substr($_SERVER["REQUEST_URI"],1);
if(strpos($q,"?")){
http_response_code(404);
echo("404 error : not found");
exit;
}
//$q=str_replace("?","",$q);
if($q==""){
$q="index";
}
if(isset($_GET["q"]) && $_GET["q"]!=""){
$q=$_GET["q"];
}else{
$q="index";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment