<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034474" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034474</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/replaceredirect-out-going-links#comment-1200941</link>
    <description> &lt;p&gt;Yeah, but actually, the redirect.php file should look like:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$url &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_GET&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;url&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Location: &#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;That will send the user to whatever is entered for url=. It should be pretty easy to change all of your outgoing links, but I too am unfamiliar with WordPress, otherwise I would tell you what code to change. I have done this exact thing with phpBB, does WordPress have some sort of code that you use in posts (like phpBB&#039;s bbcode)? So long as it does have such a thing, once again, it should be very easy to do what you are trying to do.&lt;/p&gt;
 </description>
     <pubDate>Mon, 29 May 2006 03:53:05 +0000</pubDate>
 <dc:creator>cpellizzi</dc:creator>
 <guid isPermaLink="false">comment 1200941 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/replaceredirect-out-going-links#comment-1200509</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: i want that link to be &lt;a href=&quot;http://mysite.com/redirect.php?url=http://google.com&quot; class=&quot;bb-url&quot;&gt;http://mysite.com/redirect.php?url=http://google.com&lt;/a&gt; or somthing along thoose lines.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; That could be done very easily. The redirect.php page would just have something like:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;or if you wanted to track the redirected links add that on the page too, add the link ($url) to the database (be sure to validate the url and strip any nasties), just don&#039;t output (print to screen) anything before the header() function or you&#039;ll get an error&lt;/p&gt;
&lt;p&gt;To add the &lt;a href=&quot;http://mysite.com/redirect.php?url=&quot; class=&quot;bb-url&quot;&gt;http://mysite.com/redirect.php?url=&lt;/a&gt; bit you could modify the database contents, or just add the variable to the links, something like:&lt;/p&gt;
&lt;p&gt;$add_url = &quot;http://mysite.com/redirect.php?url=&quot;;&lt;/p&gt;
&lt;p&gt;then in the page, would be something like &lt;a&gt;&quot;&amp;gt;&amp;lt;?linkname?&amp;gt;&lt;/a&gt; and just add the above into it, like so &lt;a&gt;&amp;lt;?=link?&amp;gt;&quot;&amp;gt;&amp;lt;?=linkname?&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve never used wordpress so am not sure how the things coded, the above is standard PHP&lt;/p&gt;
 </description>
     <pubDate>Tue, 23 May 2006 10:49:05 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1200509 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
