Home > Net >  Redirect All External URL to /exit/?url= [closed]
Redirect All External URL to /exit/?url= [closed]

Time:09-21

I have a WP site with lots of external URL. I am wondering if it's possible to redirect all external URLS to my domain's exit url.

For example, all external links in mydomain.com will be redirected to mydomain.com/exit/?url=https://theexternallink.com first instead of directly going to theexternallink.com.

How do I do that in Wordpress? I tried several plugins but they are not doing the job.

CodePudding user response:

The wordpress plugin External Links does exactly what you need.

You should read the section "How to create a redirect for external links?"

CodePudding user response:

While I was looking at the plugin recommended by Roman, I found the plugin called Mihdan: No External Links. This is exactly what I've been looking for.

  • Related