[erro] url amigavel
bom estou tendo problemas com a paginação,
pois se eu entro na pagina por exemplo:
http://localhost/portifolio - funciona normal
mas quando vou "paginar" a paginação não funciona.
fica assim:
http://localhost/portifolio?p=2
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?url=$1&p=$2
</IfModule>
index.php
<?php
$url = (isset($_GET['url'])) ? $_GET['url'] : "home";
$file = "$url.php";
if(file_exists($file)){
include($file);
}else{
require_once("E404.php");
}Discussão (22)
Carregando comentários...