<?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: Anchors and Cruft-Free URLs</title>
	<atom:link href="http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/feed/" rel="self" type="application/rss+xml" />
	<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/</link>
	<description></description>
	<pubDate>Sat, 22 Nov 2008 12:10:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Karl</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-65173</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Tue, 10 Apr 2007 00:36:22 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-65173</guid>
		<description>You can't redirect based on anchors, you can though pass them on by grabbing all (.*) or with [QSA].

The # symbol has a special functionality and that is of acting like an anchor, and thats the only thing you can do with it in a url. (From my experience)</description>
		<content:encoded><![CDATA[<p>You can't redirect based on anchors, you can though pass them on by grabbing all (.*) or with [QSA].</p>
<p>The # symbol has a special functionality and that is of acting like an anchor, and thats the only thing you can do with it in a url. (From my experience)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-8276</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 28 Jul 2005 15:08:39 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-8276</guid>
		<description>David: I didn't get it to work. For instance, the anchor gets stripped from:

http://c-command.com/spamsieve/manual.shtml#faq</description>
		<content:encoded><![CDATA[<p>David: I didn't get it to work. For instance, the anchor gets stripped from:</p>
<p><a href="http://c-command.com/spamsieve/manual.shtml#faq" rel="nofollow">http://c-command.com/spamsieve/manual.shtml#faq</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-8275</link>
		<dc:creator>david</dc:creator>
		<pubDate>Thu, 28 Jul 2005 15:03:11 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-8275</guid>
		<description>Michael - you obviously got it to work with anchors. But how?</description>
		<content:encoded><![CDATA[<p>Michael - you obviously got it to work with anchors. But how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harold</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-6770</link>
		<dc:creator>Harold</dc:creator>
		<pubDate>Thu, 30 Dec 2004 11:27:26 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-6770</guid>
		<description>Michael: well, it doesn't redirect, but if you start pointing only to extensionless files eventually all the old ones will phase out.
This doesn't help in the short term, but then the server won't have to process all the requests. And it keeps the apache conf more maintainable because of the lack of mod_rewrite voodoo.

This is the way I would go, but if redirecting is a must obviously you will have to use mod_rewrite (or mod_alias with something like (untested!):
&lt;code&gt;RedirectMatch 301 ^([a-z0-9\.\/_-]+)\.shtml$ http://mjtsai.com/$1&lt;/code&gt;).</description>
		<content:encoded><![CDATA[<p>Michael: well, it doesn't redirect, but if you start pointing only to extensionless files eventually all the old ones will phase out.<br />
This doesn't help in the short term, but then the server won't have to process all the requests. And it keeps the apache conf more maintainable because of the lack of mod_rewrite voodoo.</p>
<p>This is the way I would go, but if redirecting is a must obviously you will have to use mod_rewrite (or mod_alias with something like (untested!):<br />
<code>RedirectMatch 301 ^([a-z0-9\.\/_-]+)\.shtml$ <a href="http://mjtsai.com/1" rel="nofollow">http://mjtsai.com/1</a></code>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-6673</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 29 Dec 2004 17:18:59 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-6673</guid>
		<description>Harold: It's not clear to me how mod_negotiation solves the problem of redirecting the browser to the new (cruft-free) URL.</description>
		<content:encoded><![CDATA[<p>Harold: It's not clear to me how mod_negotiation solves the problem of redirecting the browser to the new (cruft-free) URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harold</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-6423</link>
		<dc:creator>Harold</dc:creator>
		<pubDate>Tue, 28 Dec 2004 22:28:03 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-6423</guid>
		<description>You are right. It isn't mod_speling, it's mod_negotiation that does what you want, though you might need mod_speling as well.

&lt;a href="http://www.websiteoptimization.com/speed/tweak/rewrite/"&gt;An article about mod_negotiation.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>You are right. It isn't mod_speling, it's mod_negotiation that does what you want, though you might need mod_speling as well.</p>
<p><a href="http://www.websiteoptimization.com/speed/tweak/rewrite/">An article about mod_negotiation.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-6272</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 28 Dec 2004 16:10:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-6272</guid>
		<description>Harold: I want it to redirect to the URL without the .shtml, even though the file on the server is .shtml. So I don't think mod_speling will help, since it changes the request to match the file on the server.</description>
		<content:encoded><![CDATA[<p>Harold: I want it to redirect to the URL without the .shtml, even though the file on the server is .shtml. So I don't think mod_speling will help, since it changes the request to match the file on the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harold</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-6267</link>
		<dc:creator>Harold</dc:creator>
		<pubDate>Tue, 28 Dec 2004 15:57:13 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-6267</guid>
		<description>Wouldn't this be easier with mod_speling?

I just tried it with http://localhost/index?go#2 and it pointed me perfectly to /index.php?go#2. I haven't tried it with shtml files though.</description>
		<content:encoded><![CDATA[<p>Wouldn't this be easier with mod_speling?</p>
<p>I just tried it with <a href="http://localhost/index?go#2" rel="nofollow">http://localhost/index?go#2</a> and it pointed me perfectly to /index.php?go#2. I haven't tried it with shtml files though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Guyot</title>
		<link>http://mjtsai.com/blog/2004/12/27/anchors-and-cruft-free-urls/#comment-6212</link>
		<dc:creator>Paul Guyot</dc:creator>
		<pubDate>Tue, 28 Dec 2004 11:55:15 +0000</pubDate>
		<guid isPermaLink="false">/?p=944#comment-6212</guid>
		<description>AFAIK, Safari indeed removes the anchor on a 301 result code, but Camino doesn't.</description>
		<content:encoded><![CDATA[<p>AFAIK, Safari indeed removes the anchor on a 301 result code, but Camino doesn't.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
