<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1019766" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1019766</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1123370</link>
    <description> &lt;p&gt;Anyone correct me on this one but wouldn&#039;t you use:&lt;br /&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;Location: &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;]\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
or&lt;br /&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;Location: &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;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Make sure you have a space in between Location: and the url.&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 Jan 2003 13:24:46 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1123370 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1123324</link>
    <description> &lt;p&gt;Umm just to revive this thread again,&lt;/p&gt;
&lt;p&gt;In request.php I have the following:&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;Location:&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_REQUEST&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;]\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;And in index.php I have this line of coding :&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;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;class=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;text\&quot;&amp;gt;The new site can be found here: &amp;lt;a href=\&quot;request.php?url=http://impactdesignz.webpros.co.nz/nethelp\&quot; class=\&quot;link\&quot;&amp;gt;Here&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;What have I done wrong? It comes up with this error when the link is clicked on :&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote:&lt;br /&gt;
Parse error: parse error, expecting `T_STRING&#039; or `T_VARIABLE&#039; or `T_NUM_STRING&#039; in c:\phpdev\www\public\nethelp\request.php on line 2
&lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Tue, 14 Jan 2003 02:03:36 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1123324 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119587</link>
    <description> &lt;p&gt;Robby,&lt;/p&gt;
&lt;p&gt;Edit your index.php and on the first line type...&lt;/p&gt;
&lt;p&gt;&lt;strong&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;Location: &amp;lt;a href=&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//www.newdomain.com/directory/&quot;&quot; title=&quot;http://www.newdomain.com/directory/&quot;&quot;&amp;gt;http://www.newdomain.com/directory/&quot;&amp;lt;/a&amp;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;/strong&gt;&lt;/p&gt;
&lt;p&gt;Change the URL in blue to the URL of your choice.&lt;/p&gt;
 </description>
     <pubDate>Sun, 24 Nov 2002 02:37:36 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1119587 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119574</link>
    <description> &lt;p&gt;what does the error say&lt;br /&gt;
and what version of PHP are you using?&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Nov 2002 22:25:56 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1119574 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119570</link>
    <description> &lt;p&gt;Okay, I tried the code and I get something called a &quot;parse error.&quot;  And I am not sure if you all may know exactly what I am asking:&lt;/p&gt;
&lt;p&gt;Let&#039;s say a visitor goes to &lt;a href=&quot;http://www.webquad.com&quot; class=&quot;bb-url&quot;&gt;webquad.com&lt;/a&gt;  When they reach that page, I want it to immediately forward or redirect them to, as an example, Microsft.com  How do I go about doing this properly?  If your coding is right, sorry, but I am getting an error still...and a simple link on the page...?&lt;/p&gt;
&lt;p&gt;Thanks for the replies!&lt;br /&gt;
Robby &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Nov 2002 22:13:42 +0000</pubDate>
 <dc:creator>KnightRobby</dc:creator>
 <guid isPermaLink="false">comment 1119570 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119542</link>
    <description> &lt;p&gt;Just for a bit of variety!&lt;/p&gt;
&lt;p&gt;In ColdFusion:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;nbsp; &amp;lt;cflocation=&amp;quot;www.whateverurl.com&amp;quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Always more than one way! &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;
 </description>
     <pubDate>Sat, 23 Nov 2002 15:10:16 +0000</pubDate>
 <dc:creator>openmind</dc:creator>
 <guid isPermaLink="false">comment 1119542 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119515</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by Suzanne &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;(And, Zollet, thanks, I have been meaning to research the ?url= part for ages!)&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You are more than welcome &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;
 </description>
     <pubDate>Sat, 23 Nov 2002 06:43:53 +0000</pubDate>
 <dc:creator>zollet</dc:creator>
 <guid isPermaLink="false">comment 1119515 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119511</link>
    <description> &lt;p&gt;o ok i think i get it now &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; :S&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Nov 2002 04:20:37 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1119511 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119471</link>
    <description> &lt;p&gt;I guess it&#039;s possible to answer a question too clearly! lol!&lt;/p&gt;
&lt;p&gt;Create a file called request.php. That file should only have this in it:&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;Location: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_REQUEST&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;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Then, on the pages where you want to redirect people to another url from your page, put:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;request.php?url=http://www.microsoft.com/&quot;&gt;microsoft&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;instead of:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.microsoft.com/&quot;&gt;microsoft&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;Well, in this case, you could add more options to request.php to track hits to that link, and then you could display on your page how many times someone clicked from your page to microsoft.&lt;/p&gt;
&lt;p&gt;However, I think that KnightRobby was asking a slightly different question? &lt;/p&gt;
&lt;p&gt;If the page the people land on isn&#039;t the one you want them to stay on, you can use a meta refresh of 0 seconds (but there is a perceptile delay), or you can put, on the page you don&#039;t want them to stay on, the php snip redirecting them to the correct page.&lt;/p&gt;
&lt;p&gt;I believe that someone just asked this question here in this forum to display two different headers depending on what site someone came from.&lt;/p&gt;
&lt;p&gt;Is that accurate KnightRobby?&lt;/p&gt;
&lt;p&gt;(And, Zollet, thanks, I have been meaning to research the ?url= part for ages!)&lt;/p&gt;
 </description>
     <pubDate>Fri, 22 Nov 2002 15:45:46 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1119471 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/redirecting-url#comment-1119423</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by zollet &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;Create a file called &quot;redirect.php&quot;, inside it put...&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[b]&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;Location: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_REQUEST&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;/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;Then you simply link to the file... &lt;strong&gt;request.php?url=http://www.microsoft.com/&lt;/strong&gt; which will send the user to M$ website, or &lt;strong&gt;request.php?url=http://www.google.com/&lt;/strong&gt; which will send the user to google. [/B]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;...what?&lt;/p&gt;
 </description>
     <pubDate>Fri, 22 Nov 2002 09:42:45 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1119423 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
