<?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>Vinodkram &#187; rewrite rule</title>
	<atom:link href="http://www.vinodkram.com/category/htaccess/rewrite-rule/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vinodkram.com</link>
	<description>Creative, Informative and Entertaining Stuff for everyone</description>
	<lastBuildDate>Mon, 26 Dec 2011 18:34:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to redirect domain to other directory on the same domain</title>
		<link>http://www.vinodkram.com/how-to-redirect-domain-to-other-directory-on-the-same-domain</link>
		<comments>http://www.vinodkram.com/how-to-redirect-domain-to-other-directory-on-the-same-domain#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:00:44 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[rewrite rule]]></category>
		<category><![CDATA[URL rewrite rule]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=45</guid>
		<description><![CDATA[Open the .htaccess file of your root directory of your project and add the following line. RewriteEngine On RewriteCond %{HTTP_HOST} !^http://someDomainName.com [NC] RewriteCond %{HTTP_HOST} !^http://www.someDomainName.com [NC] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{REQUEST_URI} !^/someOtherDirectory/ RewriteRule ^(.*)$ /someOtherDirectory/$1 Then restart your apache Usage : Suppose your project is placed in some other directory other than the default web [...]]]></description>
			<content:encoded><![CDATA[<pre>Open the .htaccess file of your root directory
of your project and add the following line.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^http://someDomainName.com [NC]
RewriteCond %{HTTP_HOST} !^http://www.someDomainName.com [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteCond %{REQUEST_URI} !^/someOtherDirectory/
RewriteRule ^(.*)$ /someOtherDirectory/$1

Then restart your apache

Usage :
Suppose your project is placed in some other directory
other than the default web directory then you can redirect
your request to that directory for example

Your actual project URL is
"http://someDomaiName/someDirectory/fileName"
and you want that your URL should resemble like
"http://someDomaiName/fileName"
then the above .htaccess rule will do the same.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/how-to-redirect-domain-to-other-directory-on-the-same-domain/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

