First, i´ve this:
- Code: Select all
RewriteEngine On
RewriteBase /
Options +FollowSymlinks
rewriteRule ^([^/]+).html?$ /index.php?nombre=$1 [L]
and i call it:
<a href="/'.urls_amigables($row["nombre"]).'.html">'.$row["nombre"].'</a>
At this step, no problem! work perfectly.
Then, i need to add another var. The file that i need to call is: index.php?nombre=XXX&titulo=XXX
I try:
- Code: Select all
rewriteRule ^([^/]+)/([^/]+).html?$ /index.php?nombre=$1&titulo=2 [L]
I call it:
<a href="'.urls_amigables($nombre).'/'.urls_amigables($row["titulo"]).'.html">Leer Mas</a>
But don´t work. I want call a page that look somethink like:
www.misite.com/NOMBRE/TITULO.html
This, when the two vars are set. NOMBRE and TITULO. But, when only NOMBRE is set, i need that look:
www.misite.com/NOMBRE.html
Thanks!