Reputation: 5747
I have just created a htaccess file and entered the following
RewriteEngine on
RewriteRule ^/profile/([0-9]+)\.html /profile.php?id=$1
This is giving me a
500 Internal Server Error
Any ideas why?
Thanks
Upvotes: 0
Views: 106
Reputation: 49885
use this in your .htaccess file
RewriteRule ^profile/([0-9]+)\.html$ /profile.php?id=$1 [NC,QSA,L]
Upvotes: 1