Hello, I have the following code in htaccess
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) index.php [QSA,L]
But when I try to access the main page site.com
it says it can not access.
index.php
<body>
<?php
require 'config/tratarUrl.php';
include $pag;
?>
</body>
treatUrl.php
if(file_exists(DIR_PAGES.$url[0].'.php'))
{
$pag = DIR_PAGES.$url[0].'.php';
}