<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Prabhakar Kasi&#039;s Raptor.in &#187; Apache</title>
	<atom:link href="http://raptor.in/category/computer/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://raptor.in</link>
	<description>Interesting News Naturally Interests Everyone</description>
	<lastBuildDate>Sat, 21 Jan 2012 01:53:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache URL Redirecting</title>
		<link>http://raptor.in/2009/03/21/apache-url-redirecting/</link>
		<comments>http://raptor.in/2009/03/21/apache-url-redirecting/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 16:16:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[How to 301 Redirect URL with white space In It]]></category>
		<category><![CDATA[How to Redirect URL with %20 In It]]></category>
		<category><![CDATA[Whitespace in the URL's]]></category>

		<guid isPermaLink="false">http://raptor.in/?p=301</guid>
		<description><![CDATA[URL Redirect URL Redirection is used primarily for redirecting from old URL to new URL. My OLD URL was http://entertainment.raptor.in/mirchi%20suchi/ which i needed to redirect to http://raptor.in/?s=suchitra Solution Redirect 301 &#8220;/mirchi suchi/&#8221; http://raptor.in/?s=suchitra Challenge The challenge here was that my old url contained a white space which took me a lot of time to fix. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-thumbnail wp-image-85" title="apache_logo" src="http://raptor.in/wp-content/uploads/2009/02/apache_logo-150x150.jpg" alt="apache_logo" width="150" height="150" /><strong><span style="text-decoration: underline;">URL Redirect</span></strong><strong></strong></p>
<p>URL Redirection is used primarily for redirecting from old URL to new URL.</p>
<p>My OLD URL was</p>
<p>http://entertainment.raptor.in/mirchi%20suchi/</p>
<p>which i needed to redirect to</p>
<p>http://raptor.in/?s=suchitra</p>
<p><strong>Solution</strong><br />
Redirect 301 &#8220;/mirchi suchi/&#8221;  http://raptor.in/?s=suchitra</p>
<p><strong>Challenge</strong><br />
The challenge here was that my old url contained a white space which took me a lot of time to fix. Then I found a solution after googleing. To understand the solution I found was even more challenging. Since entertainment.raptor.in was a sub-domain I tried to put this redirect rule in .htaccess in the entertainment folder.</p>
<p><span style="color: #888888;"><em><span id="more-301"></span>For those who don&#8217;t know how sub-domains work.<br />
</em><em><strong>http://entertainmet.raptor.in</strong> is same as <strong>http://raptor.in/entertainment</strong></em></span></p>
<p>I tried to put the solution in the .htaccess under entertainment directory and the rule didn&#8217;t seem  to work.<br />
<span style="color: #888888;"><em>Redirect 301 &#8220;/mirchi suchi/&#8221;  http://raptor.in/?s=suchitra</em></span></p>
<p>Then I came to understand that rewriteBase base was creating the problem. When .htaccess file is within a  directory(in my case entertainment directory) you can only redirect to the same directory(only to entertainment directory) and not the preceeding directory(my root directory).<br />
<strong><em><span style="color: #888888;"><br />
This would have worked for me in the .htacess file under entertainment directory.</span></em></strong><br />
<span style="color: #888888;"><em>Redirect 301 &#8220;/mirchi suchi/&#8221;  http://raptor.in/<strong>entertainment</strong>?s=suchitra<br />
</em></span><span style="color: #888888;"><em>Redirect 301 &#8220;/mirchi suchi/&#8221;  http://<strong>entertainment</strong>.raptor.in/?s=suchitra</em></span></p>
<p><strong>Other Samples</strong><br />
Redirect 301 &#8220;/mirchi suchi/&#8221;  http://raptor.in/?s=suchitra<br />
Redirect 301 &#8220;/Sivaji &#8211; The Boss 2007/august news.htm&#8221; http://raptor.in/category/entertainment/<br />
Redirect permanent /vista/default.htm http://raptor.in/category/computer/windows-vista</p>
<img src="http://raptor.in/wp-content/plugins/pixelstats/trackingpixel.php?post_id=301&amp;ts=1328708607" style="display:none;" alt="pixelstats trackingpixel"/><img src="http://raptor.in/?ak_action=api_record_view&id=301&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://raptor.in/2009/03/21/apache-url-redirecting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache URL Rewriting</title>
		<link>http://raptor.in/2009/02/06/apache-url-rewriting/</link>
		<comments>http://raptor.in/2009/02/06/apache-url-rewriting/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:00:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[URL Rewriting]]></category>

		<guid isPermaLink="false">http://raptor.in/?p=14</guid>
		<description><![CDATA[Basic URL Rewriting To begin with, let&#8217;s consider a simple example. We have a website, and we have a single PHP script that serves a single page. Its URL is: http://www.pets.com/pet_care_info_07_07_2008.php We want to clean up the URL, and our ideal URL would be: http://www.pets.com/pet-care/ In order for this to work, we need to tell [...]]]></description>
			<content:encoded><![CDATA[<p>Basic URL Rewriting</p>
<p>To begin with, let&#8217;s consider a simple example. We have a website, and we have a single PHP script that serves a single page. Its URL is:<br />
<a href="http://www.pets.com/pet_care_info_07_07_2008.php">http://www.pets.com/pet_care_info_07_07_2008.php</a></p>
<p>We want to clean up the URL, and our ideal URL would be:<br />
<a href="http://www.pets.com/pet-care/">http://www.pets.com/pet-care/</a></p>
<p>In order for this to work, we need to tell the server to internally redirect all requests for the URL &#8220;pet-care&#8221; to &#8220;pet_care_info_07_07_2008.php&#8221;. We want this to happen internally, because we don&#8217;t want the URL in the browser&#8217;s address bar to change.</p>
<p><strong>RewriteEngine On    # Turn on the rewriting engine<br />
RewriteRule    ^pet-care/?$    pet_care_info_01_02_2003.php    [NC,L]    # Handle requests for &#8220;pet-care&#8221;</strong></p>
<p>For detailed options visit this URL</p>
<p><a href="http://www.addedbytes.com/apache/url-rewriting-for-beginners/">http://www.addedbytes.com/apache/url-rewriting-for-beginners/</a></p>
<img src="http://raptor.in/wp-content/plugins/pixelstats/trackingpixel.php?post_id=14&amp;ts=1328708607" style="display:none;" alt="pixelstats trackingpixel"/><img src="http://raptor.in/?ak_action=api_record_view&id=14&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://raptor.in/2009/02/06/apache-url-rewriting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

