[microformats-discuss] Some questions about rel="tag"

Emiliano Martinez Luque martinezluque at gmail.com
Mon Sep 19 08:35:36 PDT 2005


Sorry it translates:

> http://www.thethingsiwant.com/tag/star%20wars/
> 
> to:
> 
> http://www.thethingsiwant.com/shopping/tag.php4?Tag=star%20wars

Thats was funny :-). The nice thing of this approach is that you could
have more complex url schemes, ie:

>        RewriteEngine On
>        RewriteCond %{REQUEST_URI} ^/tag/(.*)/(.*)/(.*)/
>        RewriteRule ^(.*) /foo/tag.php4?Tag=%1&Cluster=%2&Language=%3  [L]

which would translate something like:

http://www.example.com/tag/red/colors/english/

to:

http://www.example.com/tag.php4?Tag=red&Cluster=colors&Language=english

Emiliano Martínez Luque

On 9/19/05, Emiliano Martinez Luque <martinezluque at gmail.com> wrote:
> As a side note, you can use mod_rewrite to bypass Unix file naming
> conventions if you want to have space separated tags as a directory
> under Linux.
> 
> For example, we use this at work (Red Hat Linux):
> 
> #Tag
>        RewriteEngine On
>        RewriteCond %{REQUEST_URI} ^/tag/(.*)/
>        RewriteRule ^(.*) /shopping/tag.php4?Tag=%1  [L]
> 
> 
> which translates:
> 
> http://www.thethingsiwant.com/tag/star%20wars/
> 
> to:
> 
> http://www.thethingsiwant.com/shopping/tag.php4?Tag=Goth%20Lolita
> 
> Is this approach correct? well, it works :-).
> And if you think long term and how uris handle UTF-8, If you are from
> China and want to display a Chinese Character on your URL you need to
> use the %u convention...  I believe that eventually this will be
> displayed in the browser as the appropiate character, but I have no
> idea what is being done in this field by the network people.
> 
> You can do all kind of creative URL stuff with mod_rewrite.
> 
> Emiliano Martínez Luque
> 
> 
> On 9/16/05, Ryan King <ryan at technorati.com> wrote:
> > On Sep 16, 2005, at 9:51 AM, Derek Slager wrote:
> >
> > > By default, actually, Apache (and in fact, most other Web servers)
> > > will respond differently. If "foo" is a directory under the document
> > > root, Apache issues a redirect to ".*/foo/" when ".*/foo" is
> > > requested.
> >
> >
> > _______________________________________________
> > microformats-discuss mailing list
> > microformats-discuss at microformats.org
> > http://microformats.org/mailman/listinfo/microformats-discuss
> >
>


More information about the microformats-discuss mailing list