# Redirect to an External Site with the markup (:RedirectExternal http://extWebsite.com:)
Markup('RedirectExternal','>fulltext',
'/\\(:RedirectExternal (.+):\\)/e',
"RedirectExternal('$1')");
function RedirectExternal($url) {
header('Location: '.$url);
exit();
}
_______________________________________________
pmwiki-devel mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
On May 31, 2011, at 5:37 PM, adam overton wrote:
> just wondering if anyone knew of a recipe that this might be duplicating?
On 31 May 2011, at 4:06 PM, Randy Brown wrote:
> The closest I know is http://www.pmwiki.org/wiki/Cookbook/RedirectIntermap which allows redirects to any location if you set the configuration to $EnableRedirectExternal = 0;
>
> On May 31, 2011, at 5:37 PM, adam overton wrote:
>> just wondering if anyone knew of a recipe that this might be duplicating?
>
On 31 May 2011, at 4:06 PM, Randy Brown wrote:
> The closest I know is http://www.pmwiki.org/wiki/Cookbook/RedirectIntermap which allows redirects to any location if you set the configuration to $EnableRedirectExternal = 0;
>
> On May 31, 2011, at 5:37 PM, adam overton wrote:
>> just wondering if anyone knew of a recipe that this might be duplicating?
>