Redirect/rewrite all external links


(Mihir) #1

I am setting up my first discourse forum.

I want to redirect all external links through a custom script so I want all external link to be rewritten like following

http://google.com —> http://redir.mydomain.com/goto/http://google.com

I would prefer it to be rewritten at the time of posting so the modified link would be sent in email notification.

I searched this forum if anybody had posted similar question, could not find any.

I know programming but not familiar with Ruby. Any help would be greatly appreciated.

Thanks in advance.


(Vinoth Kannan) #2

“track external right clicks” feature will work in similar way. You should check it.


(Mihir) #3

I saw that. But I could not find how I can use my own script to manage the redirection.