0
votes

I have a problem with my .htaccess :

This code works :

    
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^classement-triathlon-d1-2016-([^/]*)$ /classement.php?genre=$1 [L]

But when I want add this line :

RewriteRule ^([^/]*)$ /news.php?slug=$1 [L]

I have this error : Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

1
"More information about this error may be available in the server error log." So have you checked the server error log?Chris
I don't see on the logs my new url rewrite..Thomas Bredillet

1 Answers

1
votes

The rule is fine but you need to exclude the dot in the pattern so that it can not match the rewrite destination :

RewriteRule ^([^/.]+)$ /news.php?slug=$1 [L]