converting from categories to tag? a serendipity bug?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
jerwarren
Regular
Posts: 42
Joined: Fri Feb 10, 2006 8:55 pm

converting from categories to tag? a serendipity bug?

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply