I have a web page where I am implementing a blog in PHP, but before continuing, I would like to leave the subject of URLs FRIENDS for the blog, I do not want the link to be news.php? id = x
I would like to get the structure of news / title-news /
I'm doing some tests with HTTACCESS but I do not get any results:
Code:
Button that takes to the complete news:
<a href="noticias.php?id=<?php echo $row['id']; ?>"> <button>Leer más</button></a>
Now in news .php I get this ID with GET
$id = $_GET['id'];
And I'm playing in the HTTACCESS with the following:
RewriteEngine on
RewriteRule ^noticias/(\w+)/?$ noticias.php?id=$30
The case, is that aprobecho to ask: The "RewriteEngine on" I have it open below to redirect the web to https, does something happen if I open it more times? or should only one be open?
Well, I hope someone can help me get these URLs to optimize SEO.