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.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityDue 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