You have to add a regex redirect like this
Match: Check Regular expression
I noticed that you have both
folder1.php in your example… is it really like that on your site? Maybe you can paste some real URLs (and remove the domain part if you don’t wish to show that).
I wish to redirect all urls like these to the frontpage or another url.
These .php files exists from an old website version that was not using WordPress:
I have many of thede urls.
What should my regex redirect look like ?
It could look like:
That won’t take care of the query string however, so your new url would look like, e.g.
If I want /forum.php and all versions of /forum.php?xxxx=xxxx to redirect to the frontpage this is enough ?
Source URL: /forum.php(.+)$
Target URL: http://mysite.com
Yes that will do it. Can be shortened to
Can i ask about too?
my source is /en/folder-/
my target is /en/folder/
how it should be looks in redirect?