Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/06/2013, 15:26
mega0079
 
Fecha de Ingreso: agosto-2008
Mensajes: 272
Antigüedad: 15 años, 8 meses
Puntos: 1
Respuesta: Problema con .htaccess

No a ver de una mejor forma, tengo un archivo noticias.php
Entonces quiero que cuando la gente ponga: http://mx.mipagina.com/noticias/categoria/titulo-post

NO redirija sino que se quede la url asi tal cual http://mx.mipagina.com/noticias/categoria/titulo-post
Pero que el fichero que abra sea el de noticias.php?cat=categoria&title=titulo-post&pais=MX

de tal forma que pueda listar las noticias de MX

de igual forma pasaria si ponen US.mipagina.com etc

Me ayudan porfavor?

pd. Asi es como lo hago actualmente

suPHP_ConfigPath /home/user/public_html/
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^nota/([a-zA-Z0-9-]*)/([a-zA-Z0-9-]*) ./noticia.php?cat=$1&id=$2

esto lo unico que hace es las frendly urls, pero yo quiero pasarle un nuevo parametro que sea el subdominio como lo hago?