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.

CommentFileSizeAuthor
#8 2879893-8.patch13.53 KBajay_reddy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

venkateshakarle created an issue. See original summary.

venkatesha.k12’s picture

Issue summary: View changes
ajay_reddy’s picture

Assigned: Unassigned » ajay_reddy
Status: Active » Needs work

@venkateshakarle : I will check this.

jfurnas’s picture

@venkateshakarle

I am not quite sure I understand your question. Could you try to state it again a little clearer?

venkatesha.k12’s picture

Issue summary: View changes
venkatesha.k12’s picture

@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?

jfurnas’s picture

@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?

ajay_reddy’s picture

Assigned: ajay_reddy » Unassigned
Status: Needs work » Needs review
FileSize
13.53 KB
venkatesha.k12’s picture

@jfurnas,

Yes. That's right..

@ajay_reddy,

Thank you so much for Patch. going to test it now.

ajay_reddy’s picture

@venkateshakarle have you tested patch?