[uf-discuss] Tag to URL namespacing, mod_rewrite?
David Janes -- BlogMatrix
davidjanes at blogmatrix.com
Sun Feb 5 06:06:37 PST 2006
If I remember properly, you have to do something like this:
RewriteEngine On
RewriteRule ^(.*)/tag/([^/]*)/?$ $1/app/script.php?tag=$2 [L]
You may have to play with this a bit. If you get stuck, you may have to
do things with Internal Proxies. I'd try to be a bit more specific here,
but mod_rewrite stuff can suck up hours of time.
Regards, etc...
David
Phil Cooper wrote:
> Hi guys;
>
> I'm developing a web application which uses tagging, and so of course I
> want to use rel-tag. For this I need a nice clean URL, so I was planning
> to use mod-rewrite to map a clean URL onto my underlying scripts.
>
> I used Apache's mod_rewrite and I tried to set up:
>
> http://localhost/~phil/app/tag/car
>
> to be mapped to:
>
> http://localhost/~phil/app/script.php?tag=car
>
> and it worked - except that URL also changed in the browser's address
> bar. Does anyone know how to make this happen only internally, so the
> user still sees the clean URL?
>
> Many thanks;
>
> - Phil Cooper.
>
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
>
>
More information about the microformats-discuss
mailing list