My friendly URL l looks like this: guaraparivirtual.com.br/noticias-guarapari/moqueca-capixaba-agua-na-boca/9/
I would like to have the order of place changed from the last to the last but one.
In this way: guaraparivirtual.com.br/noticias-guarapari/9/moqueca-capixaba-agua-na-boca/
I did everything but to no avail.
Follow my code for .htaccess
URL AMIGAVEL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^noticias-guarapari/([a-z0-9-]+)/([a-z0-9-]+)/?$ /noticias-guarapari.php?idnoticia=$2&nome=$1 [NC]
</IfModule>
I know it sounds obvious, but I've changed the order to:
RewriteRule ^noticias-guarapari/([a-z0-9-]+)/([a-z0-9-]+)/?$ /noticias-guarapari.php?nome=$1&idnoticia=$2 [NC]
And I called the url: guaraparivirtual.com.br/noticias-guarapari/9/moqueca-capixaba-agua-na-boca/
The content of mysql does not load when this last change is made, only the first that works perfectly.