Código PHP:
$per=new Perfil();
$new=new Llamar();
$datos_muro=new Llamar();
$sql=$new->llamado('SELECT * FROM perfiles WHERE p_u_link = "'.$_GET['link'].'" LIMIT 1');
$listado_muro=$datos_muro->llamado('SELECT * FROM muro_perfil WHERE m_perfil_receptor = "'.$_GET['link'].'" ORDER BY m_perfil_id DESC');
foreach($sql as $p){
if(isset($p)){
include('../../lops/seccion/header.php');
include('../../lops/seccion/menu.php');
include('../../lops/tpl/perfil.php');
}else{ echo 'No hay nada'; }
}
Código PHP:
Rewriterule ^perfil/([A-Za-z0-9_-]+)$ inc/php/perfil.php?link=$1 [QSA,L]