[wp-hackers] redirecting wp-content/uploads

Philip M. Hofer (Frumph) philip at frumph.net
Sat Sep 18 05:55:49 UTC 2010


RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]

Toss that into your .htaccess

This is based on this information here:
http://www.askapache.com/htaccess/php-cgi-redirect_status.html

----- Original Message ----- 
From: "John Blackbourn" <johnbillion+wp at gmail.com>
To: <wp-hackers at lists.automattic.com>
Sent: Friday, September 17, 2010 10:40 PM
Subject: Re: [wp-hackers] redirecting wp-content/uploads


> On Sat, Sep 18, 2010 at 6:02 AM, David Morris <dvmorris at gmail.com> wrote:
>> I have a WP 3.0.1 installation running multiple sites, and there are some
>> really old blog posts that reference images in wp-content/uploads/, as
>> opposed to wp-content/blogs.dir/. When those pages are loaded, apache 
>> throws
>> Internal Redirect errors all over the place:
>>
>>
>> [Fri Sep 17 13:11:50 2010] [error] [client 12.68.240.196] Request 
>> exceeded the
>> limit of 10 internal redirects due to probable configuration error. Use
>> 'LimitInternalRecursion' to increase the limit if necessary. Use 
>> 'LogLevel
>> debug' to get a backtrace.
>>
>>
>> Is there a quick and dirty way to get apache to stop throwing these 
>> errors,
>> like an htaccess change. I'm not really worried about the images showing 
>> up,
>> I just don't want to Redirection errors to fill up the error_log.
>>
>> Thanks for your help,
>>
>> --
>> Dave Morris
>> http://dave.showviz.net/
>> http://3dcamphouston.com/
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
> Your best bet would be to replace the occurrences of
> "/wp-content/uploads/" in your database with the correct location.
> That way you get your images back and you lose the problems with
> Apache redirects.
>
> Try the Search and Replace plugin:
> http://wordpress.org/extend/plugins/search-and-replace/
>
> John
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 




More information about the wp-hackers mailing list