Page 1 of 1

converting from categories to tag? a serendipity bug?

Posted: Fri Apr 06, 2007 10:28 pm
by jerwarren
I've been trying to cleanly handle the switch from categories to tags by doing some fancy url rewriting using mod_rewrite, and I'm pulling out my hair.

After giving up in frustration at not being able to match what seems like a simple match, I decided to give up and just manually put in a rewrite rule for each of my categories specifically.

That didnn't work either. I don't understand this at all. SO in an effort to make things even SIMPLER I decided to try something really, really simple, and it doesn't work either.

here's the rule I'm using:

Code: Select all

RewriteRule ^space\.htm index.php?url=/plugin/tag/space [NC]
this just results in a 404.

Nothing I do will cause rewriting to a tag to work. Any idea why this is?

I've tried rewriting to a full canonical url like http://hostname/plugin/tag/nameoftag as well, and it doesn't work either.

Has anyone successfully rewritten to a tag?

Re: converting from categories to tag? a serendipity bug?

Posted: Tue Apr 10, 2007 10:21 am
by garvinhicking
Hi!

Your complete .htaccess might give the clue to what you do.

The rule you add contains no "L" option, so any follow-up rule might rewrite your original intention.

Try:

Code: Select all

RewriteRule ^space\.htm index.php?url=/plugin/tag/space [NC,L]
instead.

Best regards,
Garvin