User-friendly URL does not work properly

Asked

Viewed 29 times

-3

I am new with friendly url, the other ones I put work well but one in question is not working

RewriteRule ^imovel-([0-9]+)\/([a-z]+)\.html$ imovel.php?m=$1&n=$2[NC,L]

In theory the result should be https://www.site.com.br/imovel-1/nome-do-imovel.html, but error 404.

Am I doing something wrong? As I said I’m beginner with friendly url. Thank you

1 answer

-3


Hello! The section ([a-z]+) does not include minus signs. Add the minus sign like this: ([a-z-]+)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.