Reputation: 331
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.
Upvotes: 0
Views: 210
Reputation: 41249
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]
Upvotes: 1