All right I’ve looked around can’t seem to find the answer, so hopefully one of my nice readers knows the answer and will share. I’m getting a bunch of inbound links that look like this
http://www.wolf-howl.com/%3Fp=324
http://www.wolf-howl.com/%3Fp=325
http://www.wolf-howl.com/%3Fp=326
%3F is the URLencoded character for a [?]. I could do something manual but I’m looking for a slicker more programatic way to rewrite the %3f character to a ? and keep the remaining query string intact.
No related posts.












{ 8 comments }
how about using PHP/urldecode:
http://us3.php.net/urldecode
no idea what you are getting at. Not into the SEO stuff. But string replacement is easy in php and the like that what you want?
It should be something like:
RewriteRule ^(.*?)%3F(.*)$ %1?%2 [L]
I’ve not testet it, but I think it should work like that or slightly modified.
Why not just implement SEFURLs and redirect your existing posts to the new URLs. Then you get the benifit of nice URLs and you won´t have this problem in the future because you won’t have a ? in the URL.
That’s what I would do.
Anty I think you’re close too, but it didn’t work I’ll play with it.
Quadszila I’m thinking about it but I’ve got 400ish url’s to redirect, something I’m not thrilled about, but may end up up doing.
I see you’ve fixed the problem… care to share your secret with us who are still searching for answers?!
nope not yet but I’m doing what quadszilla says. I know it’s the right thing to do and it’s what I would have a client do. Ripping off the band-aid is going to hurt though.
Good for you!
My problem is that I’ve made search engine friendly URL’s for a client’s site, yet Yahoo keeps hitting the old urls – with %3F as the query string prefix… wtf?!
Comments on this entry are closed.