0
redirect 301 /Produkte/Supplements http://xxx.xx/Produkte/Inhaltsstoffe/Proteine

why does this rule also redirects

 /Produkte/Supplements/xyz 

to

http://xxx.xx/Produkte/Inhaltsstoffe/Proteine/xyz

?

can't get my head around it.

1 Answer 1

0

Due to apache docs - If the client requests http://example.com/Produkte/Supplements/xyz , it will be told to access http://xxx.xx/Produkte/Inhaltsstoffe/Proteine/xyz instead. This also includes requests with GET parameters.

To workaround this use more complex RedirectMatch rule like so:

RedirectMatch ^\/Produkte\/Supplements$ http://xxx.xx/Produkte/Inhaltsstoffe/Proteine

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.