<?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: Remove SID query from Magento URLs</title>
	<atom:link href="http://inchoo.net/tools/remove-sid-from-magento-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/</link>
	<description>Magento Design and Magento Development Professionals - Inchoo</description>
	<lastBuildDate>Wed, 23 May 2012 06:34:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jacob Nielsen</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-28182</link>
		<dc:creator>Jacob Nielsen</dc:creator>
		<pubDate>Thu, 12 Apr 2012 15:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-28182</guid>
		<description>I have a Magento GO e-store - small one ;-)
With the Site:designdanois.fr i get 811 hit. But I have 26 real url in my store. (yes it is small)

I can see a lot of SID on all the extra url&#039;s.

Do some one know, how to change that in a GO e-shore. I don&#039;t know if I can access the code and I am new in the &quot;game&quot;. But all this extra SID url is killing my e-shop in google ;-(</description>
		<content:encoded><![CDATA[<p>I have a Magento GO e-store &#8211; small one <img src='http://inchoo.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
With the Site:designdanois.fr i get 811 hit. But I have 26 real url in my store. (yes it is small)</p>
<p>I can see a lot of SID on all the extra url&#8217;s.</p>
<p>Do some one know, how to change that in a GO e-shore. I don&#8217;t know if I can access the code and I am new in the &#8220;game&#8221;. But all this extra SID url is killing my e-shop in google ;-(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yan</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-26687</link>
		<dc:creator>Yan</dc:creator>
		<pubDate>Fri, 24 Feb 2012 18:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-26687</guid>
		<description>I am wondering how I would rewrite rule to remove sid and always force www when using mutlistore setup.</description>
		<content:encoded><![CDATA[<p>I am wondering how I would rewrite rule to remove sid and always force www when using mutlistore setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Parker</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-25805</link>
		<dc:creator>Chris Parker</dc:creator>
		<pubDate>Tue, 17 Jan 2012 20:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-25805</guid>
		<description>Thanks ! Worked great on our website!</description>
		<content:encoded><![CDATA[<p>Thanks ! Worked great on our website!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-24106</link>
		<dc:creator>g</dc:creator>
		<pubDate>Thu, 01 Dec 2011 04:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-24106</guid>
		<description>is there a purpose to insert ?sid in the url when tracking for counts</description>
		<content:encoded><![CDATA[<p>is there a purpose to insert ?sid in the url when tracking for counts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-22856</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 27 Sep 2011 10:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-22856</guid>
		<description>awesome stuff - worked straight away for me. thanks!</description>
		<content:encoded><![CDATA[<p>awesome stuff &#8211; worked straight away for me. thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Smith (e-nition)</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-21009</link>
		<dc:creator>Adam Smith (e-nition)</dc:creator>
		<pubDate>Tue, 17 May 2011 00:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-21009</guid>
		<description>I have been having a complete nightmare with this exact same thing. You&#039;ll want to throw in both fixes...If you enter your store without the URL matching the set base url then magento will override adding the SID - in my case adding ?frontent=! So bring this into the htaccess - before the request gets to magento, and if google has already indexed some of these urls do a bit of rewriting to let google and others know to update and at the same time keep any other params in the get request and also accounting for SSL!

:: Put in the top of your .htaccess (swap out frontend for SID if thats what you getting issues with ::


############################################
# Do redirecting to www. here, if its done by magento it will add ?SID/?frontend= 

RewriteEngine on

# Handle non ssl
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\.mydomain\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.co.uk/$1 [R=301,L]

# Handle ssl
RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} !^www\.mydomain\.co\.uk$ [NC]
RewriteRule ^(.*)$ https://www.mydomain.co.uk/$1 [R=301,L]

# Remove the query part if it comes through from existing link and has other params
RewriteCond %{QUERY_STRING} ^frontend=([^&amp;]*)&amp;(.*)$
RewriteRule (.*) /$1?%2 [R=301,L]

# Remore the qurey part fully if its just the sid present
RewriteCond %{QUERY_STRING} ^frontend=([^&amp;])
RewriteRule (.*) /$1? [R=301,L]



Hope this helps :)</description>
		<content:encoded><![CDATA[<p>I have been having a complete nightmare with this exact same thing. You&#8217;ll want to throw in both fixes&#8230;If you enter your store without the URL matching the set base url then magento will override adding the SID &#8211; in my case adding ?frontent=! So bring this into the htaccess &#8211; before the request gets to magento, and if google has already indexed some of these urls do a bit of rewriting to let google and others know to update and at the same time keep any other params in the get request and also accounting for SSL!</p>
<p>:: Put in the top of your .htaccess (swap out frontend for SID if thats what you getting issues with ::</p>
<p>############################################<br />
# Do redirecting to www. here, if its done by magento it will add ?SID/?frontend= </p>
<p>RewriteEngine on</p>
<p># Handle non ssl<br />
RewriteCond %{HTTPS} !=on<br />
RewriteCond %{HTTP_HOST} !^www\.mydomain\.co\.uk$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://www.mydomain.co.uk/$1" rel="nofollow">http://www.mydomain.co.uk/$1</a> [R=301,L]</p>
<p># Handle ssl<br />
RewriteCond %{HTTPS} =on<br />
RewriteCond %{HTTP_HOST} !^www\.mydomain\.co\.uk$ [NC]<br />
RewriteRule ^(.*)$ <a href="https://www.mydomain.co.uk/$1" rel="nofollow">https://www.mydomain.co.uk/$1</a> [R=301,L]</p>
<p># Remove the query part if it comes through from existing link and has other params<br />
RewriteCond %{QUERY_STRING} ^frontend=([^&amp;]*)&amp;(.*)$<br />
RewriteRule (.*) /$1?%2 [R=301,L]</p>
<p># Remore the qurey part fully if its just the sid present<br />
RewriteCond %{QUERY_STRING} ^frontend=([^&amp;])<br />
RewriteRule (.*) /$1? [R=301,L]</p>
<p>Hope this helps <img src='http://inchoo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jade</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-20545</link>
		<dc:creator>Jade</dc:creator>
		<pubDate>Fri, 22 Apr 2011 11:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-20545</guid>
		<description>A solution for those who want to keep all their variables but want to remove only the SID (The first variable should be the SID)

RewriteCond %{QUERY_STRING} SID=([^&amp;]*)&amp;(.*) 
RewriteRule (.*) /$1?%2 [R=301,L]</description>
		<content:encoded><![CDATA[<p>A solution for those who want to keep all their variables but want to remove only the SID (The first variable should be the SID)</p>
<p>RewriteCond %{QUERY_STRING} SID=([^&amp;]*)&amp;(.*)<br />
RewriteRule (.*) /$1?%2 [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-19383</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Wed, 09 Feb 2011 14:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-19383</guid>
		<description>We run several stores do i need to make these changes 

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

for every store or just the main magento installation ?</description>
		<content:encoded><![CDATA[<p>We run several stores do i need to make these changes </p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://www.yourdomain.com/$1" rel="nofollow">http://www.yourdomain.com/$1</a> [R=301,L]</p>
<p>for every store or just the main magento installation ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-19051</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 03 Feb 2011 20:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-19051</guid>
		<description>An alternative method to modifying the htaccess file is to change the &quot;feature&quot; directly in the Magento backend.

In CE v1.4.2.0 (and perhaps earlier versions) you can turn this feature off here:

[code]System &gt; Configuration &gt; Web &gt; Session Validation Settings &gt; Use SID on Frontend (No)[/code]

Hope that helps!</description>
		<content:encoded><![CDATA[<p>An alternative method to modifying the htaccess file is to change the &#8220;feature&#8221; directly in the Magento backend.</p>
<p>In CE v1.4.2.0 (and perhaps earlier versions) you can turn this feature off here:</p>
<pre class="brush: plain; title: ; notranslate">System &gt; Configuration &gt; Web &gt; Session Validation Settings &gt; Use SID on Frontend (No)</pre>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Taylor</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-7917</link>
		<dc:creator>Nick Taylor</dc:creator>
		<pubDate>Mon, 23 Aug 2010 09:48:54 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-7917</guid>
		<description>Very useful thread, but I need a solution for a multi-store setup and can&#039;t figure out how to do it.

Applying the single site version multiple times doesn&#039;t work and doing nothing currently means that non-www version of all except one of the sites redirects to the first site created on Magento.

Any ideas anyone?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Very useful thread, but I need a solution for a multi-store setup and can&#8217;t figure out how to do it.</p>
<p>Applying the single site version multiple times doesn&#8217;t work and doing nothing currently means that non-www version of all except one of the sites redirects to the first site created on Magento.</p>
<p>Any ideas anyone?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-7733</link>
		<dc:creator>Saurabh</dc:creator>
		<pubDate>Thu, 29 Jul 2010 08:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-7733</guid>
		<description>Hi,

I am facing same problem, and was not able to resolve it using this post.

I checked base url and url in browser they are same.

I get this error when i redirect to payment gateway and my caching is on.

I will be grateful if you can provide me any help on this.

Thanks &amp; Regards,
Saurabh</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am facing same problem, and was not able to resolve it using this post.</p>
<p>I checked base url and url in browser they are same.</p>
<p>I get this error when i redirect to payment gateway and my caching is on.</p>
<p>I will be grateful if you can provide me any help on this.</p>
<p>Thanks &amp; Regards,<br />
Saurabh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clockman</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-7720</link>
		<dc:creator>clockman</dc:creator>
		<pubDate>Mon, 26 Jul 2010 11:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-7720</guid>
		<description>Still waiting. no reply :/
anyone know to help me?</description>
		<content:encoded><![CDATA[<p>Still waiting. no reply :/<br />
anyone know to help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clockman</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-7284</link>
		<dc:creator>clockman</dc:creator>
		<pubDate>Sun, 13 Jun 2010 19:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-7284</guid>
		<description>i have the following in the .htaccess but is not redirecting... do i missed anything?


    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain\.com\.cy$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^ww\.domain\.com\.cy$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^wwww\.domain\.com\.cy$ [NC]
    RewriteRule ^(.*) http://www.domain.com.cy/$1 [L,R=301]</description>
		<content:encoded><![CDATA[<p>i have the following in the .htaccess but is not redirecting&#8230; do i missed anything?</p>
<p>    RewriteEngine on<br />
    RewriteCond %{HTTP_HOST} ^domain\.com\.cy$ [NC,OR]<br />
    RewriteCond %{HTTP_HOST} ^ww\.domain\.com\.cy$ [NC,OR]<br />
    RewriteCond %{HTTP_HOST} ^wwww\.domain\.com\.cy$ [NC]<br />
    RewriteRule ^(.*) <a href="http://www.domain.com.cy/$1" rel="nofollow">http://www.domain.com.cy/$1</a> [L,R=301]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni Anicic</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6951</link>
		<dc:creator>Toni Anicic</dc:creator>
		<pubDate>Tue, 04 May 2010 11:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6951</guid>
		<description>David,

Nice, thanks for contributing.</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>Nice, thanks for contributing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6950</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 04 May 2010 11:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6950</guid>
		<description>to remove the indexed SIDs put in htaccess:
#kill those indexed SIDs
RewriteCond %{THE_REQUEST} \?(.*)SID(.*)\ HTTP/ [NC] 
RewriteRule (.*) /$1? [R=301,L]

to make .co.uk domains working with non-www to www rewrtie you have to escape the second dot, in \.co\.uk instead of just \.co.uk:

#non-www to www.
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.sitename\.co\.uk
RewriteRule (.*) http://www.sitename.co.uk/$1 [R=301,L]</description>
		<content:encoded><![CDATA[<p>to remove the indexed SIDs put in htaccess:<br />
#kill those indexed SIDs<br />
RewriteCond %{THE_REQUEST} \?(.*)SID(.*)\ HTTP/ [NC]<br />
RewriteRule (.*) /$1? [R=301,L]</p>
<p>to make .co.uk domains working with non-www to www rewrtie you have to escape the second dot, in \.co\.uk instead of just \.co.uk:</p>
<p>#non-www to www.<br />
RewriteCond %{HTTP_HOST} .<br />
RewriteCond %{HTTP_HOST} !^www\.sitename\.co\.uk<br />
RewriteRule (.*) <a href="http://www.sitename.co.uk/$1" rel="nofollow">http://www.sitename.co.uk/$1</a> [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni Anicic</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6923</link>
		<dc:creator>Toni Anicic</dc:creator>
		<pubDate>Fri, 30 Apr 2010 11:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6923</guid>
		<description>Tom,

Did you rename the &quot;htaccess.txt&quot; into &quot;.htaccess&quot;?

Between, you should already have a .htaccess file on your Magento installation by default, you just need to edit that one. 

It might be invisible to you depending on which FTP client are you using and it&#039;s settings.</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>Did you rename the &#8220;htaccess.txt&#8221; into &#8220;.htaccess&#8221;?</p>
<p>Between, you should already have a .htaccess file on your Magento installation by default, you just need to edit that one. </p>
<p>It might be invisible to you depending on which FTP client are you using and it&#8217;s settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6922</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 30 Apr 2010 11:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6922</guid>
		<description>Thanks for your quick response Toni.

I have tried your suggestion but it doesn&#039;t seem to be having any effect... I had to make the htaccess.txt file and I put it in my public_html.</description>
		<content:encoded><![CDATA[<p>Thanks for your quick response Toni.</p>
<p>I have tried your suggestion but it doesn&#8217;t seem to be having any effect&#8230; I had to make the htaccess.txt file and I put it in my public_html.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toni Anicic</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6921</link>
		<dc:creator>Toni Anicic</dc:creator>
		<pubDate>Fri, 30 Apr 2010 10:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6921</guid>
		<description>Tom, if you wanna keep the www part you&#039;ll need this:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.co.uk/$1 [R=301,L]

So yea, what you wrote is correct as far as I can see.</description>
		<content:encoded><![CDATA[<p>Tom, if you wanna keep the www part you&#8217;ll need this:</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.co.uk$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://www.yourdomain.co.uk/$1" rel="nofollow">http://www.yourdomain.co.uk/$1</a> [R=301,L]</p>
<p>So yea, what you wrote is correct as far as I can see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6920</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 30 Apr 2010 10:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6920</guid>
		<description>Hi,

Can someone help me (novice) out here, I&#039;m trying to set this up for a .co.uk site but having no luck... I presumed below is correct?

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.co.uk$ [NC]
RewriteRule ^(.*)$ http://www.example.co.uk/$1 [R=301,L]</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can someone help me (novice) out here, I&#8217;m trying to set this up for a .co.uk site but having no luck&#8230; I presumed below is correct?</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^www\.example\.co.uk$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://www.example.co.uk/$1" rel="nofollow">http://www.example.co.uk/$1</a> [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franz</title>
		<link>http://inchoo.net/tools-frameworks/remove-sid-from-magento-urls/comment-page-1/#comment-6385</link>
		<dc:creator>Franz</dc:creator>
		<pubDate>Mon, 08 Mar 2010 13:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=2589#comment-6385</guid>
		<description>Hi Thanks for you  Help.

But whats the best config for a magento Multistore?

myshop.net/firstkategorie/home
myshop.net/firstkategorie/

myshop.net/
myshop.net/index.php

Are the same</description>
		<content:encoded><![CDATA[<p>Hi Thanks for you  Help.</p>
<p>But whats the best config for a magento Multistore?</p>
<p>myshop.net/firstkategorie/home<br />
myshop.net/firstkategorie/</p>
<p>myshop.net/<br />
myshop.net/index.php</p>
<p>Are the same</p>
]]></content:encoded>
	</item>
</channel>
</rss>

