Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

HTTP Error 500.52 - URL Rewrite Module Error

admin first-time

Started by Nemanja Stabic 6 years ago · 5 replies · 3203 views
6 years ago

Hi,

I am trying to get the grav-admin plugin to work, I'm at the point where I imported the .htaccess file into IIS URL Rewrite successfully. The rules are parsed with no errors, and they are created in IIS:
image|690x136

When I browse to the grav-admin site I am presented with the following error:
HTTP Error 500.52 - URL Rewrite Module Error. The expression "({{|}}|{%|%})" contains a repeat expression (one of '*', '?', '+', '{' in most contexts) that is not preceded by an expression.

It looks like it is something to do with the rules, but I can't make heads or tails of it.
Please help.
Thank you!

6 years ago

That's the exact issue I had while trying to run Grav on Xampp and then on some native Windows software. Spent a day without any luck solving it. Then I just got Laragon (as I already suggested) and there were no issues ;) Doesn't look like I'm going back to Xampp or that Windows solution any time soon

👍 1
1 reply
5 years ago

I found that if you removed the two sub-rules, it will work. I've been searching online and couldn't find a direct solution for IIS. So, I actually stopped being lazy and read the error and figured it out.

IIS-Screenshot 2021-04-04 021444|690x134

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Vladimir Novak, 2 weeks ago
3 293 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago