0
Hello, I have the following code on htaccess
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) index.php [QSA,L]
However when I try to access the main page site.com
he says it is not possible to 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';
}
is wordpress? think this information depends on how your index works to manipulate the received data
– Danilo
RewriteRule ^(.*)$ index.php [QSA, L]
starts by correcting that.– Edilson
@Danilod I use Xampp to open the site.
– Lucas Caresia