I created a new url alias for the node, after that the old ?amp URL gives a 404 and does no redirect 301 to the new ?amp URL

I want to change url alias and than have the old ?amp URL redirected to the new ?amp url

How is that possible?

Comments

stevenx created an issue.

stevenx’s picture

I digged deeper into this.

When changing the path alias 1 time, the redirect from old ?amp url to new ?amp url works like it is expected.

Only if you change the url alias again after that first time the redirect does not work anymore.

http://domain.com/url-first.html?amp
http://domain.com/url-new.html?amp (redirect to this new url works)
http://domain.com/url-newer.html?amp (redirect to this newer url does not work)
http://domain.com/url-final.html?amp (redirect to this final url does not work from previous urls)

that is only not working for ?amp urls.
without ?amp parameter the urls redirect correct to url-final.html