Ethan Allen
Ethan Allen

Reputation: 14835

Why is this Rewrite rule in my .htaccess file on Apache causing a 500 Internal Error?

Here is the rule that is causing a 500 error. When I remove it, my site functions fine. Ideas?

RewriteRule ^pin/([^]+)/ pin.php?id=$1 [L]

Upvotes: 1

Views: 33

Answers (1)

anubhava
anubhava

Reputation: 785246

There is an incorrect regex here [^]+. Try this rule:

RewriteEngine On

RewriteRule ^pin/([^/]+)/?$ /pin.php?id=$1 [L,QSA,NC]

Upvotes: 2

Related Questions