We have list of OLD site URLs to migrate on new site. (may be 100+ which I'm not considering it to add in .htaccess)
We have below requirement examples.
i.e. :
https://www.domain.com/sitemap?L=0 ==> https://www.domain.com/sitemap. (where arguments /sitemap?L=0 should redirect to same page - /sitemap)
https://www.domain.com/test?arg=xyz == >https://www.domain.com/ (where arguments /test?arg=xyz should redirect to home page without any arguments at end)
But above are not seems to be handling the arguments in the URL.
currently we tried to add in URL redirects config. it is working as below
https://www.domain.com/sitemap?L=0 ==> https://www.domain.com/sitemap?L=0 (still keeping its arguments)
https://www.domain.com/test-this?arg=xyz == >https://www.domain.com/?arg=xyz. (still keeping its arguments)
can't we make arguments also covered in redirection?
we need those arguments are considered in URL Redirection quality.
Thanks in advance.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2879893-8.patch | 13.53 KB | ajay_reddy |
Comments
Comment #2
venkatesha.k12 commentedComment #3
ajay_reddy@venkateshakarle : I will check this.
Comment #4
jfurnas commented@venkateshakarle
I am not quite sure I understand your question. Could you try to state it again a little clearer?
Comment #5
venkatesha.k12 commentedComment #6
venkatesha.k12 commented@jfurnas
edited the main description now. please let me know if still not clear.
overview :
we have list of URLs from old site to new site. all URLs has arguments.
after adding those in URL redirection config, links will get redirect but where arguments still present in URL.
is it possible to avoid it?
Comment #7
jfurnas commented@venkateshakarle
Thanks for clearing it up a bit. It sounds to me, like you are asking if you can remove the arguments during redirect? For example, if the old site was:
http://www.example.com/node/25?arg=XYZ
you want it to redirect you to:
http://www.example.com/node/25
Am I correct in this?
Comment #8
ajay_reddyComment #9
venkatesha.k12 commented@jfurnas,
Yes. That's right..
@ajay_reddy,
Thank you so much for Patch. going to test it now.
Comment #10
ajay_reddy@venkateshakarle have you tested patch?
Comment #11
grask0 commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.
If the issue remains relevant for D8.8+ versions, merge requests with proposed solutions for a new module version (D10) are welcome in a new follow-up issue.
Thanks!