<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011579" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011579</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1067036</link>
    <description> &lt;p&gt;Problem resolved. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
 </description>
     <pubDate>Sun, 09 Jul 2000 17:58:35 +0000</pubDate>
 <dc:creator>richjb</dc:creator>
 <guid isPermaLink="false">comment 1067036 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066947</link>
    <description> &lt;p&gt;Hi Richard,&lt;/p&gt;
&lt;p&gt;Yeah, something like that. The ?numbers users get are dynamically created and the URLs are incredibly long, so I configured the script that I&#039;m using and they get these shorter URLs with the ?something at the end but I figure that I need a redirect script that will take the ?something at the end of the short URLs and redirect to the longer URL. But the problem is that I don&#039;t know what they&#039;ll get at the end as the ?numbers are dynamically created. So the script needs to take the ?number at the end of the shorter link and than in some way take the ?number and insert it in the longer URLs end and than redirect the user to the longer URL but the ?number of the link at the end of the shorter URL must stay the same in the longer URL that the user is redirected to.&lt;br /&gt;
Is this possible?&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jul 2000 12:10:51 +0000</pubDate>
 <dc:creator>emke</dc:creator>
 <guid isPermaLink="false">comment 1066947 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066938</link>
    <description> &lt;p&gt;basically all you want is a system where no matter what they click on ?number always stays the same?  like a tracking system for referrals, ect?&lt;/p&gt;
&lt;p&gt;Richard&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jul 2000 09:52:13 +0000</pubDate>
 <dc:creator>richjb</dc:creator>
 <guid isPermaLink="false">comment 1066938 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066936</link>
    <description> &lt;p&gt;OK, this is cool. But my problem with redirecting is that I don&#039;t know to what URL I&#039;ll redirect people to. I mean I don&#039;t know what&#039;ll be at the end of the URL, something like ?66379. So if I have a short URL that ends with redirect.cgi?66379 I want the script to redirect to the long URL that ends with ?id=66379, the ?something is the same with both URLs.&lt;br /&gt;
But as I don&#039;t know what&#039;ll be at the end, it could be any ?something, I want the script to, and I don&#039;t know if this is possible, figure it out from the links URL and automatically redirect to the longer URL with the ?something that is the same as it was in the shorter URL.&lt;br /&gt;
I hope that you can understand this.&lt;br /&gt;
Is this possible and how can I do this?&lt;br /&gt;
Emir.&lt;/p&gt;
 </description>
     <pubDate>Fri, 07 Jul 2000 08:43:02 +0000</pubDate>
 <dc:creator>emke</dc:creator>
 <guid isPermaLink="false">comment 1066936 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066663</link>
    <description> &lt;p&gt;No way!&lt;/p&gt;
&lt;p&gt;vBulletin rules!!&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Jul 2000 23:06:01 +0000</pubDate>
 <dc:creator>abahta</dc:creator>
 <guid isPermaLink="false">comment 1066663 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066639</link>
    <description> &lt;p&gt;I liked the UBB a lot better. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Jul 2000 20:19:24 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1066639 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066451</link>
    <description> &lt;p&gt;Uhg, can&#039;t get this right. It added URL and /URL into the code.&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Jul 2000 14:37:54 +0000</pubDate>
 <dc:creator>Justin S</dc:creator>
 <guid isPermaLink="false">comment 1066451 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066450</link>
    <description> &lt;p&gt;Oops, looks like vBulletin added [url] and [/url] to the code. Take those out.&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Jul 2000 14:37:08 +0000</pubDate>
 <dc:creator>Justin S</dc:creator>
 <guid isPermaLink="false">comment 1066450 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect-code#comment-1066449</link>
    <description> &lt;p&gt;Try running this program...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;use CGI qw/:standard/;&lt;br /&gt;$action = param(&amp;#039;action&amp;#039;);&lt;br /&gt;&lt;br /&gt;if($action eq &amp;quot;1&amp;quot;) { &amp;amp;number1; }&lt;br /&gt;elsif($action eq &amp;quot;2&amp;quot;) { &amp;amp;number2; }&lt;br /&gt;elsif($action eq &amp;quot;3&amp;quot;) { &amp;amp;number3; }&lt;br /&gt;elsif($action eq &amp;quot;4&amp;quot;) { &amp;amp;number4; }&lt;br /&gt;else { &amp;amp;showerror; }&lt;br /&gt;&lt;br /&gt;sub number1 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;Location: [url]http://www.url.com/directory/link.html\n\n&amp;quot;;[/url]&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub number2 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;Location: [url]http://www.url.com/directory/link.html\n\n&amp;quot;;[/url]&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub number3 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;Location: [url]http://www.url.com/directory/link.html\n\n&amp;quot;;[/url]&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub number4 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;Location: [url]http://www.url.com/directory/link.html\n\n&amp;quot;;[/url]&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;sub showerror {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;Content-type: text/html\n\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;Sorry, there was an error processing your request&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;If you look at it you&#039;ll see that it&#039;s pretty easy to add as many &quot;extensions&quot; as you need. This is how the script works: people go to &lt;a href=&quot;http://www.url.com/directory/script.cgi?action=1&quot; class=&quot;bb-url&quot;&gt;http://www.url.com/directory/script.cgi?action=1&lt;/a&gt; which will redirect them to the link in sub number1.&lt;/p&gt;
 </description>
     <pubDate>Mon, 03 Jul 2000 14:36:16 +0000</pubDate>
 <dc:creator>Justin S</dc:creator>
 <guid isPermaLink="false">comment 1066449 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
