1
For lack of experience, I’m having difficulty rewriting my blog url, I tried as below:
http://www.meusite.com/blog/article.php?a=3&v=5&at=teste-do-primeiro-post
In the end I would like the result below:
http://www.meusite.com/blog/article/teste-do-primeiro-post
I put the .htaccess
at the root and then inside the blog folder, which folder .htaccess
has to stay?
My last attempt below:
RewriteEngine on
RewriteRule ^article/([0-9]+)/([0-9a-zA-Z_-]+) article.php?a=$1&v=$1&at=$1 [NC,L]
I inserted in the main folder of the server this way Rewriterule ^?([^/])/?([^/])/?([^/])/?(.)$ article.php? a=$1&v=$2&at=$3 [L,QSA] and generated the Internal error 500
– RRV
You have to insert into the "blog" folder, where it contains the article folder!
– Wilson Faustino
I inserted inside the blog folder, but is returning error 500
– RRV
I removed the first
?
was wrong in the answer. You can try to put the path forward (after the^
) or tb use theRewriteBase /
orRewriteBase /blog/
– Wilson Faustino