0

I cannot find any way to replace automatically an url with a new url which has a “?” in its URL :-( It get just cut off everything after the first “?” including the “?” too eachtime I tried it.

How to handle this issue?

3
  • Replace the URL in what context? Commented Jul 25, 2018 at 0:03
  • What do you mean? I mean EACH urls from my blogpostings and pages. Commented Jul 26, 2018 at 22:12
  • You mean in the database? Commented Jul 27, 2018 at 0:32

1 Answer 1

0

If you are appending any parameters to the url you should use add_query_args https://developer.wordpress.org/reference/functions/add_query_arg/

3
  • Thank your! I really understand nothing of this but I redirect it to my coder. Hopefully he can make it with your help. Commented Jul 25, 2018 at 1:06
  • Unfortunately it also did not work corretcly when he tried it via sql command. Any further ideas how to handle it? Commented Jul 26, 2018 at 22:13
  • It would be best if you could provide some sort of context to your question with what you are trying to achieve. Please explain with some examples of your URLs Commented Jul 27, 2018 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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