<?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>ThinkOvi! - Website transfer and Server migration services &#187; rewrite rule</title>
	<atom:link href="http://www.thinkovi.com/tag/rewrite-rule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkovi.com</link>
	<description>Get your website moved the right way by professionals</description>
	<lastBuildDate>Fri, 15 Oct 2010 10:29:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Redirecting url with a rewrite rule</title>
		<link>http://www.thinkovi.com/redirecting-urls-with-a-rewrite-rule/</link>
		<comments>http://www.thinkovi.com/redirecting-urls-with-a-rewrite-rule/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:21:37 +0000</pubDate>
		<dc:creator>Ovidiu</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[rewrite rule]]></category>
		<category><![CDATA[url redirect]]></category>

		<guid isPermaLink="false">http://www.thinkovi.com/?p=363</guid>
		<description><![CDATA[Lets suppose you have made some changes to your website and you want to redirect some pages to their new url format, this .htaccess rewrite rule might come in handy: RewriteEngine on RewriteCond %{REQUEST_URI} ^(.*)subpage1/subpage2/mypage.html$ RewriteCond %{QUERY_STRING} Itemid=91&#38;page=mypage$ RewriteRule ^(.*)$ http://mynewurl.com/index.php?mypage=new What the above condition does is redirect /subpage1/subpage2/mypage.html?Itemid=91&#38;page=mypage url to http://mynewurl.com/index.php?mypage=new Obviously, you need [...]]]></description>
			<content:encoded><![CDATA[<p>Lets suppose you have made some changes to your website and you want to redirect some pages to their new url format, this .htaccess rewrite rule might come in handy:</p>
<blockquote><p>RewriteEngine on<br />
RewriteCond %{REQUEST_URI} ^(.*)subpage1/subpage2/mypage.html$<br />
RewriteCond %{QUERY_STRING} Itemid=91&amp;page=mypage$<br />
RewriteRule ^(.*)$ http://mynewurl.com/index.php?mypage=new</p></blockquote>
<p>What the above condition does is redirect <strong>/subpage1/subpage2/mypage.html?Itemid=91&amp;page=mypage</strong> url to <strong>http://mynewurl.com/index.php?mypage=new</strong></p>
<p>Obviously, you need to replace the above names with your actual site names</p>
<p>The second RewriteCond with QUERY_STRING is only needed if the url you want to rewrite has additional parameters like mypage.html?pages=mypage for instance</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkovi.com/redirecting-urls-with-a-rewrite-rule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

