[svlug] gotten myself in trouble with permalinks,

Tin Le tin at le.org
Mon Mar 27 11:32:01 PST 2006

>> Thank you very much for all the time you have put into helping me.  I
>> really don't need a general solution at all.  Just for cases where
>> people have referenced specific articles and I still get referrals from
>> them.
> If you only really need a few specific articles, try redirects:
> Redirect permanent /old/location http://hostname.com/xxx/newloc.jpg
> It's a nice simple solution for static urls, often easier than
> puzzling out mod_rewrite. I haven't used them with CGI urls like
> your ?p24 example, but it's worth a try.

That's what I suggested to Peter early on.  However, it won't work with
QUERY values (the part after '?') as that is not considered a part of
the URI.  E.g. Redirect will never be able to match the URI '?'.  The
webserver strips it away before Redirect can see it.

For this type of problems, you need mod_rewrite.

Tin Le
Tin Le - tin at le.org
Firewall and Security Consulting

More information about the svlug mailing list