Source: /?p=555
Target: /
Sorry – I have more than 2000 of those URLS.
Normal I do a (.+)$ + regex for this kind, but “?” is not handled correct using this method.
What is the way to do this ?
Ok, you didn’t say you had 2000 URLs. Why is ? not handled correctly?
If I add it like this
Source url: /?p(.+)$ + Regex
Target URL: /
then my example.com/?p=555 redirects to example.com/?%2F
? is regular expression character. You will need to escape it to \?. You can find details about regular expressions by reading guides on the internet.
Can you help me how to type it in?
If I use /^\?p(.+)$ + regex then Im redirected to https://example.com/?%2F
You can use https://regex101.com to test a regular expression.
The ^ should always go at the start.
I seem to something wrong.
Can you help me with an what excat to type in ?
I just want all the 2000 urls looking like this:
example.com/?p=xxx
to be redirected to my frontpage.
As detailed on https://redirection.me/support/redirect-regular-expressions/ you will need to create the expression that matches your needs. There are a lot of resources on the internet that can help.
Usually you don’t need a redirect for /?p=123 anyway as this is a standard part of WordPress, and you may cause problems by redirecting it.
I am Currently Facing the same problem, do you have a solution yet?
What is the problem you are facing @knowskit ?