<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Permanently 301 Redirect Domain Including Query Strings and Subdirectories</title>
	<atom:link href="http://blog.wmsmerchantservices.com/windows-server-issues/permanently-301-redirect-domain-including-query-strings-and-subdirectories/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wmsmerchantservices.com/windows-server-issues/permanently-301-redirect-domain-including-query-strings-and-subdirectories/</link>
	<description>Resources for Web Merchants and other Online Businesses</description>
	<pubDate>Tue, 07 Sep 2010 19:16:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: phpfreelancer Mumbai</title>
		<link>http://blog.wmsmerchantservices.com/windows-server-issues/permanently-301-redirect-domain-including-query-strings-and-subdirectories/#comment-481</link>
		<dc:creator>phpfreelancer Mumbai</dc:creator>
		<pubDate>Sun, 17 May 2009 02:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.wmsmerchantservices.com/?p=32#comment-481</guid>
		<description>My htaccess is like this

RewriteBase //

RewriteRule /?octal\-shop/([0-9]+)/([a-z]+&#124;[a-z-]+).html product.php?prod_name=$2&#38;prodid=$1  [L,NC] 

Redirect 301 /octal-shop/12/BoreGeneral.html  http://www.mysite.com/octal-shop/12/Bore.html

I have one rewrite rule to redirect all pattern matching urls to product.php?prod_name=$2&#38;prodid=$1its working perfect.

Due to some reason I have few duplicate urls on my site and I am simply trying to implement the 301 redirect so I am writing the 301 redirect, Its also working fine and my server sends 301 response code ( moved permanently) but the problems is it redirects to the expected url but with its parameters also.. take a look at this

Duplicate url   : http://www.mysite.com/octal-shop/12/BoreGeneral.html
Redirected to  : http://www.mysite.com/octal-shop/12/Bore.html?prod_name=Bore&#38;prodid=12

Expected redirected url : http://www.mysite.com/octal-shop/12/Bore.html because this urls is also rewrited with another rewriterule so dont need to pass 2 parameters in query string..

Can any one help on this issue???</description>
		<content:encoded><![CDATA[<p>My htaccess is like this</p>
<p>RewriteBase //</p>
<p>RewriteRule /?octal\-shop/([0-9]+)/([a-z]+|[a-z-]+).html product.php?prod_name=$2&amp;prodid=$1  [L,NC] </p>
<p>Redirect 301 /octal-shop/12/BoreGeneral.html  <a href="http://www.mysite.com/octal-shop/12/Bore.html" rel="nofollow">http://www.mysite.com/octal-shop/12/Bore.html</a></p>
<p>I have one rewrite rule to redirect all pattern matching urls to product.php?prod_name=$2&amp;prodid=$1its working perfect.</p>
<p>Due to some reason I have few duplicate urls on my site and I am simply trying to implement the 301 redirect so I am writing the 301 redirect, Its also working fine and my server sends 301 response code ( moved permanently) but the problems is it redirects to the expected url but with its parameters also.. take a look at this</p>
<p>Duplicate url   : <a href="http://www.mysite.com/octal-shop/12/BoreGeneral.html" rel="nofollow">http://www.mysite.com/octal-shop/12/BoreGeneral.html</a><br />
Redirected to  : <a href="http://www.mysite.com/octal-shop/12/Bore.html?prod_name=Bore&amp;prodid=12" rel="nofollow">http://www.mysite.com/octal-shop/12/Bore.html?prod_name=Bore&amp;prodid=12</a></p>
<p>Expected redirected url : <a href="http://www.mysite.com/octal-shop/12/Bore.html" rel="nofollow">http://www.mysite.com/octal-shop/12/Bore.html</a> because this urls is also rewrited with another rewriterule so dont need to pass 2 parameters in query string..</p>
<p>Can any one help on this issue???</p>
]]></content:encoded>
	</item>
</channel>
</rss>
