<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Apache Redirects</title>
	<link>http://alexking.org/blog/2003/09/08/apache-redirects</link>
	<description>Alex King's blog - software, photography, sports, etc.</description>
	<pubDate>Tue, 06 Jan 2009 10:26:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: geek ramblings</title>
		<link>http://alexking.org/blog/2003/09/08/apache-redirects#comment-377</link>
		<dc:creator>geek ramblings</dc:creator>
		<pubDate>Wed, 10 Sep 2003 16:18:04 +0000</pubDate>
		<guid>http://alexking.org/blog/2003/09/08/apache-redirects#comment-377</guid>
		<description>&lt;strong&gt;Redirection&lt;/strong&gt;I mentioned earlier that I have converted my site to WordPress, and set up link redirection for the old links. There&#8217;s some discussion going on over at Alex&#8217;s site about this subject as well. I figured I&#8217;d put up some notes about what I did.</description>
		<content:encoded><![CDATA[<p><strong>Redirection</strong>I mentioned earlier that I have converted my site to WordPress, and set up link redirection for the old links. There&#8217;s some discussion going on over at Alex&#8217;s site about this subject as well. I figured I&#8217;d put up some notes about what I did.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://alexking.org/blog/2003/09/08/apache-redirects#comment-371</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 09 Sep 2003 14:16:44 +0000</pubDate>
		<guid>http://alexking.org/blog/2003/09/08/apache-redirects#comment-371</guid>
		<description>Ahh, then yes, the redirect would make sense. :)

There is probably a way to do it in the .htaccess file, but I don't know it yet so I'll tell you how to do it in PHP. 

Create a file like this:

&lt;code&gt;&#60;?php
ob_start(); // buffer any error message
@header('Location: index.php'.$_REQUEST["QUERY_STRING"]);
ob_end_clean();
?&#62;&lt;/code&gt;

and replace your b2.php file with it.</description>
		<content:encoded><![CDATA[<p>Ahh, then yes, the redirect would make sense. <img src='http://alexking.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>There is probably a way to do it in the .htaccess file, but I don&#8217;t know it yet so I&#8217;ll tell you how to do it in PHP. </p>
<p>Create a file like this:</p>
<p><code>&#60;?php<br />
ob_start(); // buffer any error message<br />
@header('Location: index.php'.$_REQUEST["QUERY_STRING"]);<br />
ob_end_clean();<br />
?&#62;</code></p>
<p>and replace your b2.php file with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://alexking.org/blog/2003/09/08/apache-redirects#comment-370</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 09 Sep 2003 14:04:56 +0000</pubDate>
		<guid>http://alexking.org/blog/2003/09/08/apache-redirects#comment-370</guid>
		<description>Well I have, but I found that I get a lot of hits to b2.php still! So really I just want to redirect people from b2.php to index.php with the parameters intact.</description>
		<content:encoded><![CDATA[<p>Well I have, but I found that I get a lot of hits to b2.php still! So really I just want to redirect people from b2.php to index.php with the parameters intact.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://alexking.org/blog/2003/09/08/apache-redirects#comment-369</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 09 Sep 2003 14:02:11 +0000</pubDate>
		<guid>http://alexking.org/blog/2003/09/08/apache-redirects#comment-369</guid>
		<description>I don't - I use my main site template and just integrated the loops in where I wanted them. Why not just rename b2.php to index.php?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t - I use my main site template and just integrated the loops in where I wanted them. Why not just rename b2.php to index.php?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://alexking.org/blog/2003/09/08/apache-redirects#comment-368</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 09 Sep 2003 11:54:02 +0000</pubDate>
		<guid>http://alexking.org/blog/2003/09/08/apache-redirects#comment-368</guid>
		<description>Do you redirect b2.php to index.php? How would you do that? I've been playing around with it a bit, but have so far not been able to make it work.

I want to make sure that it passes any parameters to the new link.</description>
		<content:encoded><![CDATA[<p>Do you redirect b2.php to index.php? How would you do that? I&#8217;ve been playing around with it a bit, but have so far not been able to make it work.</p>
<p>I want to make sure that it passes any parameters to the new link.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
