Forum Moderators: phranque

Message Too Old, No Replies

Crawl Errors 404

         

asafwmorld

11:45 pm on May 26, 2011 (gmt 0)

10+ Year Member



Hi,

I get 404 crawl errors from google because other sites encode my urls. I would like to redirect those bad urls to the real ones.

There are two patterns that I'd like to fix:
1)
mysite.com/wp-content/themes/whatever/thumbnail.php%3Fsrc%3Dhttp://mysite.net/wp-content/uploads/2009/09/myimage.jpg%26h%3D200%26w%3D165%26zc%3D1

should be redirected to:
mysite.com/wp-content/themes/whatever/thumbnail.php?src=http://mysite.net/wp-content/uploads/2009/09/myimage.jpg&h=200&w=165&zc=1

2)
mysite.com/wp-content/uploads/2009/09/myimage.jpg%3Fggnoads

should be redirected to:
mysite.com/wp-content/uploads/2009/09/myimage.jpg?ggnoads


Is this doable via htaccess?

lucy24

1:58 am on May 27, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



[webmasterworld.com...]

The magic words appear to be {THE_REQUEST}. And then see if you can figure out why Apache-- assuming that's what you've got-- isn't decoding this stuff on its own.

asafwmorld

4:14 pm on May 27, 2011 (gmt 0)

10+ Year Member



Thanks for the reply. So is it a setup issue with apache?