<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: 301 Redirect with mod_rewrite or RedirectMatch</title>
	<atom:link href="http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Wed, 18 Nov 2009 23:28:48 -0500</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: B George</title>
		<link>http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html#comment-93232</link>
		<dc:creator>B George</dc:creator>
		<pubDate>Thu, 06 Aug 2009 12:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html#comment-93232</guid>
		<description>Hi,

I’m using a tool to crawl my web pages. And the tool says I’ve duplicate pages. The duplicates are below:

1. &lt;code&gt;/&lt;/code&gt;
2. &lt;code&gt;/index.php&lt;/code&gt;

Is it necessary and possible to redirect (1) to (2)?

Thanks,
Biju.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I’m using a tool to crawl my web pages. And the tool says I’ve duplicate pages. The duplicates are below:</p>
<p>1. <code>/</code><br />
2. <code>/index.php</code></p>
<p>Is it necessary and possible to redirect (1) to (2)?</p>
<p>Thanks,<br />
Biju.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html#comment-71572</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Sun, 19 Apr 2009 16:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html#comment-71572</guid>
		<description>

&lt;pre class=&#039;brushhtaccess&#039;&gt;
RedirectMatch 301 ^/(.*)posts(.*)$ http://www.askapache.com/$1donations$2
&lt;/pre&gt;

</description>
		<content:encoded><![CDATA[<pre class='brushhtaccess'>RedirectMatch 301 ^/(.*)posts(.*)$ http://www.askapache.com/$1donations$2</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: kitten13</title>
		<link>http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html#comment-71506</link>
		<dc:creator>kitten13</dc:creator>
		<pubDate>Sat, 18 Apr 2009 20:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/htaccess/301-redirect-with-mod_rewrite-or-redirectmatch.html#comment-71506</guid>
		<description>Hello,

I try desperately to apply your advice without success, I need to replace the words &lt;strong&gt;posts&lt;/strong&gt; by &lt;strong&gt;donations&lt;/strong&gt; in my url.

So I did this but this does not :

&lt;pre class=&#039;brushhtaccess&#039;&gt;RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html$ [NC]
RewriteRule ^/(.*)$ ([-]?[0-9]+)([-_][^/]*)?/dons/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html$1 [L,R=301]&lt;/pre&gt;

or

&lt;pre class=&#039;brushhtaccess&#039;&gt;RedirectMatch 301 ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html$   
&#160;
/([-]?[0-9]+)([-_][^/]*)?/dons/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html&lt;/pre&gt;

Could you tell me where is my mistake.

Thank you for your help

best regards</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I try desperately to apply your advice without success, I need to replace the words <strong>posts</strong> by <strong>donations</strong> in my url.</p>
<p>So I did this but this does not :</p>
<pre class='brushhtaccess'>RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html$ [NC]
RewriteRule ^/(.*)$ ([-]?[0-9]+)([-_][^/]*)?/dons/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html$1 [L,R=301]</pre>
<p>or</p>
<pre class='brushhtaccess'>RedirectMatch 301 ^([-]?[0-9]+)([-_][^/]*)?/posts/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html$
&nbsp;
/([-]?[0-9]+)([-_][^/]*)?/dons/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?/([0-9]+)([-_][^/]*)?\.html</pre>
<p>Could you tell me where is my mistake.</p>
<p>Thank you for your help</p>
<p>best regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>
