Create simple REGEX for plugin Yoast redirection at Wordpress

Closed Posted 4 years ago Paid on delivery
Closed Paid on delivery

I need a SINGLE regex to solve this kind of situation in YOAST redirection (REGEX), sending a OLD URL that may come or not with UTM parameters to a NEW URL, passing the UTM parameters if they are present at OLD URL.

So i have 4 possible formats for OLD URL:

OLD URL:

https://old-url/mensagem-inscricao

https://old-url/mensagem-inscricao/

https://old-url/mensagem-inscricao/?[utm parameters]

https://old-url/mensagem-inscricao?[utm parameters]

NEW URL:

https://old-url/planos-pagamento

https://old-url/planos-pagamento/

https://old-url/planos-pagamento/?[utm parameters]

https://old-url/planos-pagamento?[utm parameters]

So, this is what i need, picking the example of first line

if OLD URL = https://old-url/mensagem-inscricao

then NEW URL = https://old-url/planos-pagamento

So, i need to do this logic with others 3 lines

PHP WordPress

Project ID: #22946946

About the project

10 proposals Remote project Active 4 years ago

10 freelancers are bidding on average $31 for this job

evgendob

Hello. Wordpress development expert ready to help you with project. I have more 400 good reviews and more 9 years of development experience behind, so all will be done with best quality and timeframe. Free bugfixing s More

$50 USD in 1 day
(588 Reviews)
8.1
Ferroigni

Hi, My name is Heorhii (George), I've read the description and everything looks clear lets start creating your regex. Please contact me and I could start right now. Thanks, George

$30 USD in 1 day
(66 Reviews)
6.6
WEB9andAPP6Max

Hello Thanks for your good description and i understood what you want. As an experienced developer. I have strong skills and experience in development for 9 years. if have time,visit my profile now. I hope work for you More

$20 USD in 7 days
(39 Reviews)
6.2
lionelpinkhardvw

Hi there I'm a skilled developer who can do this for you easily - write you a regex that will translate the old URLs to the new.

$15 USD in 1 day
(70 Reviews)
5.9
BrightSolution2

Hello, Thank you for this job posting. I saw this project description carefully. I have completed 50+ projects similar to your current requirements before. I have 10 years experience in Wordpress(front-end & back-end) More

$20 USD in 7 days
(54 Reviews)
5.5
Snail0917

Please give me a chance to work with you. Wordpress is a simple project for me. Hello sir! Nice to meet you. I am very interested in your project. I am a WordPress expert. I have rich experience in website design More

$30 USD in 1 day
(26 Reviews)
5.2
techobrie

High Quality + Fast Speed = Excellent Result + Business Success, this is my work- ing style. I have gone through your Job post and I can understand your job requirement thoroughly. I have a total of 15 years of experie More

$70 USD in 1 day
(52 Reviews)
5.2
Walrusyn

Olá, consigo fazer estas regras usando o ficheiro de .htaccess do Apache. Qualquer coisa, me contacte :) Espero poder ajudar. Cumprimentos, Walrusyn

$20 USD in 7 days
(14 Reviews)
3.3
pradnyaangaj

I have worked in Regex for last 7 years. I have professional expertise in PHP language. Please consider my application as I can help you in quick way.

$25 USD in 7 days
(0 Reviews)
0.0