<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KrubnerL</id>
	<title>Microformats Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KrubnerL"/>
	<link rel="alternate" type="text/html" href="https://microformats.org/wiki/Special:Contributions/KrubnerL"/>
	<updated>2026-05-24T12:39:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=rel-tag-faq&amp;diff=6337</id>
		<title>rel-tag-faq</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=rel-tag-faq&amp;diff=6337"/>
		<updated>2006-04-15T06:39:27Z</updated>

		<summary type="html">&lt;p&gt;KrubnerL: /* Q&amp;amp;A */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= rel-tag frequently asked questions = &lt;br /&gt;
&lt;br /&gt;
This document serves to answer and discuss frequently asked questions specifically about the [[rel-tag]] microformat. You may want to read the [[rel-faq]] first as it answers many common questions about the HTML4 “rel” and “rev” attributes, and their linktype values.  If you have a new question to ask, first consider asking on the [http://microformats.org/mailman/listinfo/microformats-discuss/ microformats-discuss list].&lt;br /&gt;
&lt;br /&gt;
== Q&amp;amp;A ==&lt;br /&gt;
&lt;br /&gt;
# ''Where does a tagging link belong? Does the tagging link only need to appear in my Web feed (RSS / Atom)?  Does the tagging link need to appear on the page where my specific blog entry lies?  Does the tagging link need to appear everywhere that I can possibly imagine?''&lt;br /&gt;
#* In short, tagging links belong in all the places and formats in which you published tagged content. The Web page is the primary location where users read content and where search engines index. Thus the Web page is a place where you should absolutely include your [[rel-tag]] links. To tag your blog posts, put the [[rel-tag]] links inside them, visibly. The Web feeds are simply alternate ways of publishing your blog posts, and thus should include the full content of your blog posts, [[rel-tag]] links intact.&lt;br /&gt;
# ''The format specifies that the tag must “come after the last / in the path”. Will something like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/index.php/TAG&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; work?  Or does it have to be a “real” directory or [http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html mod_rewrite]? -- [[User:Singpolyma|singpolyma]] 23:51, 24 Jan 2006 (PST)''&lt;br /&gt;
#* The key is the URL. Whether that URL is generated from a database or a directory does not matter. The URL matters.&lt;br /&gt;
#** My question, however, was about whether that URL form ( &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.com/index.php/TAG&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; ) would be valid, since there is the dot in “index.php”.&lt;br /&gt;
#*** Yes, the URL in the example is valid (or legal or conformant or whatever you want to call it to minimize confusion). The dot (period, full stop, U+002E) is free to appear in most places in a URL, even in the middle of a path-segment that is not the last path-segment. (The latest specification for URLs, “[http://gbiv.com/protocols/uri/rfc/rfc3986.html Uniform Resource Identifier (URI): Generic Syntax]”, is RFC 3986.)&lt;br /&gt;
# ''I’m developing a web application which uses tagging, and so of course I want to use [[rel-tag]]. For this application, I want nice, clean URLs. I was planning to use [http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html mod_rewrite] to map a clean URL onto my underlying scripts. How do I use Apache’s [http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html mod_rewrite] to map &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/tag/car&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/script.php?tag=car&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; ?''&lt;br /&gt;
#* One solution involves changing the script to inspect the path for the tag (via the variable “PATH_INFO”), rather than inspecting the query:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;Directory &amp;quot;/home/user/public_html/app/&amp;gt;&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteRule ^tag/([^/]+)$ script.php/$1 [last]&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* For people who can edit the server’s main configuration file, the following untested configuration code may work. Corrections are welcome.&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;RewriteEngine On&lt;br /&gt;
RewriteMap tag int:escape&lt;br /&gt;
RewriteRule ^/~user/app/tag/([^/]+)$ /~user/app/script.php?tag=${tag:$1} [last]&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
#* The following configuration code, left over from a previous contribution to this document, does a poor job according to tests. The following code fails to enforce the [[rel-tag]] rules about the tag corresponding to the last non-empty path-segment. The following code fails to transcode the tag for safe use in the URL query. Consider that a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/tag/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; would map internally to a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/script.php?tag=&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; . Consider that a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/tag/not-a-tag/the-tag&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; would map internally to a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/script.php?tag=not-a-tag/the-tag&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; . Consider that a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/tag/the-tag/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; would map internally to a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/script.php?tag=the-tag/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; . Consider that a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/tag/attack&amp;amp;intent=destroy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; would map internally to a request on &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://example.org/~user/app/script.php?tag=attack&amp;amp;intent=destroy&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; .&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;Directory &amp;quot;/home/user/public_html/app/&amp;gt;&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteRule ^tag/(.*)$ script.php?tag=$1&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ol start=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;''Does a rel tag still have meaning if the link redirects? If Apache returns a 302 status code, does the rel tag have meaning? Is there a formal rule that indexers should follow the link to the final, resolved destination? Or is there a formal rule that a rel tag should be ignored if URL of its link does not return a status code of 200?''&lt;br /&gt;
* ..next answer&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;/div&gt;</summary>
		<author><name>KrubnerL</name></author>
	</entry>
</feed>