Question:
I have the following link
http://127.0.0.1/site/noticia/12(cod_da_noticia)
I wanted to know how I can leave the link like this
http://127.0.0.1/site/noticia/12(cod_da_noticia)/queria colocar o titulo aqui
link no .htaccess
RewriteBase /
RewriteEngine On
RewriteRule ^site/noticia/([^/]+)$ site/index.php?op=28&cod=$1 [L,QSA]
href
href="../noticia/<?php echo $registo['cod_noticia'];?>">
Answer:
Try this way:
RewriteEngine On
RewriteRule ^site/noticia/([a-z0-9-]+)/(.*)/?$ /site/index.php?op=28&cod=$1 [NC,L]