<?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: Setting Up 301 Redirects for Dynamic URLs</title>
	<atom:link href="http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/</link>
	<description>SEO Outsourcing Solutions</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:36:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Alex Juel</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1552</link>
		<dc:creator>Alex Juel</dc:creator>
		<pubDate>Fri, 17 Sep 2010 15:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1552</guid>
		<description>Hi Jo,

Looks like you didn&#039;t even read my post, because neither of the methods you tried are what I wrote about.

Try

RewriteCond %{QUERY_STRING} ^id=11$
RewriteRule ^$ http://www.mywdomain.com/new.html? [R=301,L]</description>
		<content:encoded><![CDATA[<p>Hi Jo,</p>
<p>Looks like you didn&#8217;t even read my post, because neither of the methods you tried are what I wrote about.</p>
<p>Try</p>
<p>RewriteCond %{QUERY_STRING} ^id=11$<br />
RewriteRule ^$ <a href="http://www.mywdomain.com/new.html?" rel="nofollow">http://www.mywdomain.com/new.html?</a> [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ElbowGrease</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1545</link>
		<dc:creator>ElbowGrease</dc:creator>
		<pubDate>Tue, 14 Sep 2010 23:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1545</guid>
		<description>Hi Alex
Pls help
I&#039;m trying redirect this url
http://www.mywdomain.com/?id=11 to http://www.mywdomain.com/new.html

Ive tried:

1)RewriteRule ^new.html  ?id=11 [NC]

2)RewriteCond %{QUERY_STRING} ^id=11$
RewriteRule ^(.*)$ mynew.html.html[R=permanent,L]

1) allows me to acces the same web page via both urls. I was hoping to be redirected to http://www.mywdomain.com/new.html when I type http://www.mywdomain.com/?id=11 in the browser.
2) Send me a 404 error
Thanks in advance

Jo</description>
		<content:encoded><![CDATA[<p>Hi Alex<br />
Pls help<br />
I&#8217;m trying redirect this url<br />
<a href="http://www.mywdomain.com/?id=11" rel="nofollow">http://www.mywdomain.com/?id=11</a> to <a href="http://www.mywdomain.com/new.html" rel="nofollow">http://www.mywdomain.com/new.html</a></p>
<p>Ive tried:</p>
<p>1)RewriteRule ^new.html  ?id=11 [NC]</p>
<p>2)RewriteCond %{QUERY_STRING} ^id=11$<br />
RewriteRule ^(.*)$ mynew.html.html[R=permanent,L]</p>
<p>1) allows me to acces the same web page via both urls. I was hoping to be redirected to <a href="http://www.mywdomain.com/new.html" rel="nofollow">http://www.mywdomain.com/new.html</a> when I type <a href="http://www.mywdomain.com/?id=11" rel="nofollow">http://www.mywdomain.com/?id=11</a> in the browser.<br />
2) Send me a 404 error<br />
Thanks in advance</p>
<p>Jo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Juel</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1542</link>
		<dc:creator>Alex Juel</dc:creator>
		<pubDate>Mon, 13 Sep 2010 11:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1542</guid>
		<description>You&#039;re probably right, because %3F is the equivalent of a question mark. A question mark needs to be encoded in a URL for it to work properly.

Here&#039;s a quick explanation of the &quot;why&quot;.

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

So in your case, I&#039;m not completely positive how you can fix it, but maybe you can try replacing it in the .htaccess with %3F. If that doesn&#039;t work, what about adding the html code of a question mark in it&#039;s place, similar to the ampersand in your URL, &#063;

I&#039;ve also heard that making the final URL absolute could help fix the problem so you could try adding the http://www.yoursite.com/ etc. to the final URL.

RewriteCond %{QUERY_STRING} ^main_page=product_info&amp;products_id=301$
RewriteRule ^index\.php$ http://www.yoursite.com/shop/index.php?route=product/product&amp;product_id=301? [R=301,L]

Here&#039;s a discussion from Webmaster World talking about a similar issue you&#039;re having, which might help you out.

http://www.webmasterworld.com/apache/4138119.htm

I hope some of this helps. I don&#039;t have experience with this issue, so if you figure it out, I&#039;d love to hear what you did.</description>
		<content:encoded><![CDATA[<p>You&#8217;re probably right, because %3F is the equivalent of a question mark. A question mark needs to be encoded in a URL for it to work properly.</p>
<p>Here&#8217;s a quick explanation of the &#8220;why&#8221;.</p>
<p><a href="http://www.blooberry.com/indexdot/html/topics/urlencoding.htm" rel="nofollow">http://www.blooberry.com/indexdot/html/topics/urlencoding.htm</a></p>
<p>So in your case, I&#8217;m not completely positive how you can fix it, but maybe you can try replacing it in the .htaccess with %3F. If that doesn&#8217;t work, what about adding the html code of a question mark in it&#8217;s place, similar to the ampersand in your URL, &#63;</p>
<p>I&#8217;ve also heard that making the final URL absolute could help fix the problem so you could try adding the <a href="http://www.yoursite.com/" rel="nofollow">http://www.yoursite.com/</a> etc. to the final URL.</p>
<p>RewriteCond %{QUERY_STRING} ^main_page=product_info&#038;products_id=301$<br />
RewriteRule ^index\.php$ <a href="http://www.yoursite.com/shop/index.php?route=product/product&#038;product_id=301?" rel="nofollow">http://www.yoursite.com/shop/index.php?route=product/product&#038;product_id=301?</a> [R=301,L]</p>
<p>Here&#8217;s a discussion from Webmaster World talking about a similar issue you&#8217;re having, which might help you out.</p>
<p><a href="http://www.webmasterworld.com/apache/4138119.htm" rel="nofollow">http://www.webmasterworld.com/apache/4138119.htm</a></p>
<p>I hope some of this helps. I don&#8217;t have experience with this issue, so if you figure it out, I&#8217;d love to hear what you did.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proximity</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1541</link>
		<dc:creator>proximity</dc:creator>
		<pubDate>Thu, 26 Aug 2010 11:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1541</guid>
		<description>thanks for the great article.

I have made a redirection following your guideline and it works,
BUT it adds %3f in the end of the new url.

Here is my code:

RewriteCond %{QUERY_STRING} ^main_page=product_info&amp;products_id=301$
RewriteRule ^index\.php$ 
/shop/index.php?route=product/product&amp;product_id=301? [R=301,L]

I think it&#039;s because I still have a ? in my new url and it doesn&#039;t understand what the second one is for...

Thanks for your help!</description>
		<content:encoded><![CDATA[<p>thanks for the great article.</p>
<p>I have made a redirection following your guideline and it works,<br />
BUT it adds %3f in the end of the new url.</p>
<p>Here is my code:</p>
<p>RewriteCond %{QUERY_STRING} ^main_page=product_info&amp;products_id=301$<br />
RewriteRule ^index\.php$<br />
/shop/index.php?route=product/product&amp;product_id=301? [R=301,L]</p>
<p>I think it&#8217;s because I still have a ? in my new url and it doesn&#8217;t understand what the second one is for&#8230;</p>
<p>Thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Özgür KILIÇ</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1487</link>
		<dc:creator>Özgür KILIÇ</dc:creator>
		<pubDate>Sat, 07 Aug 2010 20:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1487</guid>
		<description>Hi,
My Old Urls : 
oyunambari.com/oyna.php?oyun_id=2442
oyunambari.com/oyna.php?oyun_id=2443
oyunambari.com/oyna.php?oyun_id=2444
oyunambari.com/oyna.php?oyun_id=3434
................
oyunambari.com/oyna.php?oyun_id=8991
oyunambari.com/oyna.php?oyun_id=8992

my new url there is not.
I want all oyna.php urls redirect oyunambari.com

My Code is 
RewriteRule ^oyna.php?oyun_id=(.*)$ http://www.oyunambari.com [L,R=301]

But not working this code.
Help.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi,<br />
My Old Urls :<br />
oyunambari.com/oyna.php?oyun_id=2442<br />
oyunambari.com/oyna.php?oyun_id=2443<br />
oyunambari.com/oyna.php?oyun_id=2444<br />
oyunambari.com/oyna.php?oyun_id=3434<br />
&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
oyunambari.com/oyna.php?oyun_id=8991<br />
oyunambari.com/oyna.php?oyun_id=8992</p>
<p>my new url there is not.<br />
I want all oyna.php urls redirect oyunambari.com</p>
<p>My Code is<br />
RewriteRule ^oyna.php?oyun_id=(.*)$ <a href="http://www.oyunambari.com" rel="nofollow">http://www.oyunambari.com</a> [L,R=301]</p>
<p>But not working this code.<br />
Help.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gutscheine</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1444</link>
		<dc:creator>Gutscheine</dc:creator>
		<pubDate>Wed, 04 Aug 2010 11:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1444</guid>
		<description>Hello,

i want to redirect from:

http://www.baby-modern.de/gratisbutler/?p=798

to another site. But it dont work. Could somebody help me?

Something like that dont work:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^p=760$
RewriteRule ^(.*)$ http://www.example.com/blog/?p=221? [R=301,L]</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>i want to redirect from:</p>
<p><a href="http://www.baby-modern.de/gratisbutler/?p=798" rel="nofollow">http://www.baby-modern.de/gratisbutler/?p=798</a></p>
<p>to another site. But it dont work. Could somebody help me?</p>
<p>Something like that dont work:<br />
RewriteEngine On<br />
RewriteCond %{QUERY_STRING} ^p=760$<br />
RewriteRule ^(.*)$ <a href="http://www.example.com/blog/?p=221?" rel="nofollow">http://www.example.com/blog/?p=221?</a> [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luig</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-1397</link>
		<dc:creator>Luig</dc:creator>
		<pubDate>Thu, 29 Jul 2010 14:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-1397</guid>
		<description>Hy to all, 

Here my question:

I have to rewrite some urls with path like:

/main/defautl.aspx?Action=hereavariable

to my new homepage

I used this:

RewriteCond %{QUERY_STRING} ^Action=tlc$
RewriteRule ^main/default\.aspx$  http://mynewdomain.com [R=301,L]

the problem is that the final url become: 

http://mynewdomain.com/?Action=tlc

but I need only:

http://mynewdomain.com
______________________________

Onother problem is: how I can get a simple rule for multiple page with same pattern &quot;/main/defautl.aspx?Action=&quot;

Thanks Bye!</description>
		<content:encoded><![CDATA[<p>Hy to all, </p>
<p>Here my question:</p>
<p>I have to rewrite some urls with path like:</p>
<p>/main/defautl.aspx?Action=hereavariable</p>
<p>to my new homepage</p>
<p>I used this:</p>
<p>RewriteCond %{QUERY_STRING} ^Action=tlc$<br />
RewriteRule ^main/default\.aspx$  <a href="http://mynewdomain.com" rel="nofollow">http://mynewdomain.com</a> [R=301,L]</p>
<p>the problem is that the final url become: </p>
<p><a href="http://mynewdomain.com/?Action=tlc" rel="nofollow">http://mynewdomain.com/?Action=tlc</a></p>
<p>but I need only:</p>
<p><a href="http://mynewdomain.com" rel="nofollow">http://mynewdomain.com</a><br />
______________________________</p>
<p>Onother problem is: how I can get a simple rule for multiple page with same pattern &#8220;/main/defautl.aspx?Action=&#8221;</p>
<p>Thanks Bye!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-498</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 17 Jul 2010 12:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-498</guid>
		<description>Hi Alex,
Thanks for the tutorial, but I&#039;ve added code to my existing htaccess file to test 1 redirect of:

www.example.com/vessels.php?p=leviathon

to 

www.example.com/leviathan.php

with the following code:

RewriteEngine On 
RewriteCond %{QUERY_STRING} ^p=leviathon$
RewriteRule ^/vessels.php$ http://www.example.com/leviathan.php? [L,R=301]

but for some reason it&#039;s NOT working??

Any ideas???

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Alex,<br />
Thanks for the tutorial, but I&#8217;ve added code to my existing htaccess file to test 1 redirect of:</p>
<p><a href="http://www.example.com/vessels.php?p=leviathon" rel="nofollow">http://www.example.com/vessels.php?p=leviathon</a></p>
<p>to </p>
<p><a href="http://www.example.com/leviathan.php" rel="nofollow">http://www.example.com/leviathan.php</a></p>
<p>with the following code:</p>
<p>RewriteEngine On<br />
RewriteCond %{QUERY_STRING} ^p=leviathon$<br />
RewriteRule ^/vessels.php$ <a href="http://www.example.com/leviathan.php?" rel="nofollow">http://www.example.com/leviathan.php?</a> [L,R=301]</p>
<p>but for some reason it&#8217;s NOT working??</p>
<p>Any ideas???</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay G.</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-91</link>
		<dc:creator>Jay G.</dc:creator>
		<pubDate>Sun, 04 Jul 2010 04:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-91</guid>
		<description>oh thanks for your cooperation Mr. Alex.</description>
		<content:encoded><![CDATA[<p>oh thanks for your cooperation Mr. Alex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Juel</title>
		<link>http://www.seoverflow.com/seo/setting-up-301-redirects-for-dynamic-urls/#comment-90</link>
		<dc:creator>Alex Juel</dc:creator>
		<pubDate>Fri, 02 Jul 2010 15:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.seoverflow.com/blog/?p=72#comment-90</guid>
		<description>Hi Jay,

For your first question, this should work:

RewriteCond %{QUERY_STRING} ^option=content&amp;link_id={dynamic ID)$
RewriteRule ^index\.php$ http://www.example.com/index.html/content/?id={dynamic ID)? [R=301,L]

For your second question, I&#039;ve never done something like that. Maybe this page can help you; http://www.openjs.com/articles/ajax/target_url_hiding.php

 You could always just set up redirect so that the clean URL redirects to the long URL instead too.</description>
		<content:encoded><![CDATA[<p>Hi Jay,</p>
<p>For your first question, this should work:</p>
<p>RewriteCond %{QUERY_STRING} ^option=content&amp;link_id={dynamic ID)$<br />
RewriteRule ^index\.php$ <a href="http://www.example.com/index.html/content/?id=" rel="nofollow">http://www.example.com/index.html/content/?id=</a>{dynamic ID)? [R=301,L]</p>
<p>For your second question, I&#8217;ve never done something like that. Maybe this page can help you; <a href="http://www.openjs.com/articles/ajax/target_url_hiding.php" rel="nofollow">http://www.openjs.com/articles/ajax/target_url_hiding.php</a></p>
<p> You could always just set up redirect so that the clean URL redirects to the long URL instead too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

