Link Tracking Parameters Break Links to Wordpress Pages in Mailings Print

  • Wordpress, 302 redirect, .htaccess.
  • 0

For tracking, ListManager adds extra data to the ends of links. This can break linking to Wordpress and other websites that use URL parameters of their own.

A workaround is to use a meta-refresh tag or a 302 redirect on your website to redirect the browser to the destination page, then put the link to the page with the meta-refresh or the 302 redirect into your links instead of the actual Wordpress link.

Example meta refresh:

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta HTTP-EQUIV="REFRESH" content="0; url=http://domain.com/"> 
</head>

302 Redirect Implemented in .htaccess File

Assuming the web server allows it, it is easy to implement a 302 redirect in .htaccess.

Redirecting a page

Redirect /file-name.html http://www.domain.com/temporary-directory/temporary-file-name.html

Redirecting a directory

Redirect /directory http://www.domain.com/temporary-directory
Redirecting an entire site
Redirect / http://www.temporary-domain.com/

Redirecting a page in PHP

<?php
header(“Location: http://www.domain.com/temporary-address/temporary-file-name.html”);
exit();
?>

 


Was this answer helpful?

« Back