Welcome to WebmasterWorld Guest from 3.214.184.124
Forum Moderators: Ocean10000 & phranque
Any changes in Apache? Maybe I should use "410" instead of the "G" in the rule?
5xx errors are broadly equivalent to "keep trying"
hard evidence
You could also try changing [G] toEr, wouldn't that lead to a slew of soft 404s? Manually redirecting to your 500 page may give human users the intented message, but it won't make search engines happy. In any case, if the problem is in the conditions, I don't think it would make any difference.
<snip>
[R=301,L]
I have been studying the server log entries carefully, and really, all 500s during the last two weeks are the result of my own .htaccess rules that are intended to produce a 410.
The complete last three lines are:
As the present codes 500 are not true errors of the server, can I simply disregard the strange wrong code?
Did you mean that that's the entire ruleset? One RewriteRule, accompanied by two [OR]-delimited conditions?
Are you returning the 410 to all requests from certain IP addresses?
In general, you want to avoid rules in .* because it forces the server to evaluate conditions on every single request ever.
RewriteRule (^|/|\.html)$ - [G]
Replace "html" with "htm" or "php" or whatever extension(s) you really do use. Don't omit the closing anchor! The formulation means: any request for (a) the root ^$ or (b) any directory-index page (URL ending in /) or (c) an ordinary page (URL ending in .html). There are alternative wordings if your site happens to be extensionless. RewriteRule foobar - [G]
(no conditions) and request any made-up nonsense URL with "foobar" in it. Do you get a 410 or a 500? Look at two things: what you see right then and there on your screen, and what your access logs show. However, in the raw access log the error code for that request is 404.
I put my own IP to the rewrite conditions, and was served with a 410 on the screen. The access log, however, says 404. So it really seems to be just the logging. Infuriating, indeed. How should I express the issue professionally when I inform the hosting company?
how to put mod_rewrite and mod_access (in order to be able to use Allow/Deny directives) in the same .htaccess file
Additionally, a 410 Gone error was encountered while trying to use an ErrorDocument to handle the request.
a custom 410 (as defined in your own htaccess) or the standard 410
Additionally, a 410 Gone error was encountered while trying to use an ErrorDocument to handle the request.
At the time you got this "410 Gone" message, was your own IP still on the experimental list of RewriteConds-- the ones for the rule that's supposed to end up issuing a 410? If so, that's a simple explanation.