How to redirect to specific url if contains specific text in url?


I am new in WordPress and I am trying to create a plugin that redirects to the target by picking up the same post from source URL to target URL. The user just needs to enter the URL he wants to redirect. The plugin will auto put the post URL by picking up from the source post to target post

for e.g:
sc URL-

target url-


plugin will auto add the post url and random key picking up from source url to target url like

Please help me as i don’t know how to create the admin grid and how to get the data from admin grid into code.

for more explanation:
it can redirect if


but it don’t redirect auto



we need to make it so that it can redirect by replacing the main source post url with target url and other things remain same
for e.g

replace the with and other url auto add to target url (slide1).
I am using this plugin but want to add this functionality to this.

Rakesh Kumar 4 years 2020-02-14T08:38:34-05:00 0 Answers 97 views 0

Leave an answer