Forum Moderators: phranque
%3Fview%3Dprintable
e.g.
/page.html%3Fview%3Dprintable
This should in fact be requests for
/page.html?view=printable
Is there any way to get apache to decode the encoded characters to their 'real' equivalents, to eliminate this source of 404s?
I'm familiar with mod_rewrite, to some extent, as my sites have plenty of
Redirect permanent /foo.html /bar.html
stuff.
If that's impossible for you for some reason, you can change the URLs that are requested in a variety of ways. I'd probably write a small PerlHandler with a regular expression like this in it:
s/%([0-9A-Z][0-9A-Z])/pack("c",hex($1))/ige
and run all my requests through that before letting them be handled in the regular way.
You could put something like that in /page.html, but I'm not sure what language it's written in. That is probably not a good solution since you'd have to do it in each of your pages.
I can't think of a way to do it just using mod_rewrite, but someone may find one.
Hope it helps.
[webmasterworld.com...]
Pendanticist.