How to match the + symbol in the URL with Ionics Isapi Rewrite Filter (IIRF)?

276 views Asked by At

I have this rule for a redirect

RedirectRule ^/test+test.html /index.html [I,R=301]

and the index.html file exists in the root/ of the website however when I visit mysite/test+test.html I get a 404 error, maybe the plus (+) character need to be matched in another way, can anyone help me?

1

There are 1 answers

4
anubhava On

+ is special regex symbol meaning 1 or matches. Escape it as:

RedirectRule ^/test\+test.html /index.html [I,R=301]