.htaccess Rewrite Rule does not work correctly with index.php?path

Refresh

March 2019

Views

3 time

1

Hi I have the following old url

www.domain.de/index.php?leistungen

and the new one is

www.domain.de/leistungen

I tried the following RewriteRuile like I did it millions of times.

RewriteRule ^index.php?leistungen /leistungen/ [L,R=301]

But in this case I got the following result:

www.domain.de/path/?leistungen=

And it it routes to the root url

What is the issue in this case?

Thanks in advance.

0 answers