My friendly URL does not pass the variable by GET

0

I have already looked at the questions related to this problem here in the Stack and I was not successful, I am currently able to pass the values through the URL but I can not call them on another page with GET. URL goes like this:

http://localhost/sustenagil/noticia/o-projeto-soja-mais-sustentavel/34/

My line in .htaccess like this:

RewriteRule noticia/([a-z0-9-]+)/([0-9]+)/ noticia.php?id=$2 [NC]

No news.php is standard:

$id = $_GET['id'];

The error that appears is:

  

"Notice: Undefined index: id in C: \ wamp64 \ www \ sustenagil \ noticia.php   on line 53 "

    
asked by anonymous 10.07.2018 / 15:37

0 answers