In the code from PHP, in the links I am doing the following:
<h1><a href='noticias/" . str_replace(" ","-",$articulos[$i]['titulo']) . "'>" . $articulos[$i]['titulo'] . "</a></h1>
Which originates a URL for example such that: link (the link does not include my domain, do not try to enter because that URL does not exist).
In htaccess to understand that URL, you should take the ID of that link. I am using the following code:
RewriteEngine on
RewriteRule ^private/noticias/(.+)$ private/noticias.php?ID=$1
But it returns an error page. I do not understand exactly how it works but it's what I've seen on a website where they explain how to use friendly URLs. What I do not understand is how I will be passing the ID if I am just passing the title of the news. I'm a mess with this topic.