I can not put friendly urls with .htaccess

0

I created the .htaccess file manually since I did not have it and doing tests to get friendly urls, it gives me an internal server error. The code that I have is the following:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/private/noticias/([0-9]+)\.html /private/noticias.php?ID=$1 [L]

$1 is a variable since the ID I get dynamically with PHP. However, I get the following error on any page of the web:

I do not know if I'm leaving something, or what is happening. Once I delete the FTP server file it works again.

    
asked by JetLagFox 22.04.2017 в 15:03
source

1 answer

0

Good afternoon,

Try this way:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^private/noticias/([0-9]+)\.html noticias.php?id=$1 [L]
    
answered by 22.04.2017 в 15:31