I have the following problem, I made a friendly URL, but it is giving "conflict" when I use ajax in my forms, when I click submit, it duplicates my site, my checks are like this
if(isset($_GET['url'])){
$url=$_GET['url'];
$sepURL=explode('/',$url);
}
$diretorio="paginas";
if(empty($sepURL)){
include_once("$diretorio/home.php");
}elseif(isset($sepURL[0]) && $sepURL[0] == 'classificados' || isset($sepURL[0]) && $sepURL[0] == 'noticias'){
include_once("$diretorio/class.php");
}elseif(isset($sepURL[0]) && $sepURL[0] == 'contato'){
include_once("$diretorio/contato.php");
}
With this check, it is duplicating the site when I press some submit that uses ajax on the site, does anyone know how to solve it?