PDA

View Full Version : 302 Anomaly


Ajarn
2-27-06, 10:49 PM
About two weeks ago, I noticed a huge increase in pageviews, bu no noticeable increase in resources, like kb's used.

I then noticed that there seemed to be a connection on 302 returns. sometimes more than 3 million 302 pageviews per day, but no noticeable increase in banner shows, or other markers..

What's happening here? Besides throwing my pageview stats out of whack, is it likely to cause other problems with powweb accusing me of 'resource abuse' ??

Ajarn
2-28-06, 04:29 AM
This is my .htaccess file. Any problems here?

#AddHandler cgi-script-debug .cgi
AddType text/x-server-parsed-html .html
AddHandler cgi-script .cgi .pl


ErrorDocument 404 http://asiarecipe.com/404.html
ErrorDocument 403
RedirectMatch (.*)/taiwan.html http://www.asiarecipe.com/chimain.html
RedirectMatch (.*)/links.cgi http://www.asiarecipe.com/
RedirectMatch (.*)/cgi/web/webbbs_config.cgi http://asian-links.com/cgi/web/webbbs_config.cgi/

<Limit GET PUT POST>
order allow,deny
allow from all
deny from 69.90.63.85 68.36.66.114 66.20.176.37 61.5.41.43 65.188.115.81 63.89.41.199 210.50.40.144 210.50.40.144 212.58.169.143 217.121.162.254 167.206.247.142 210.50.16.161 172.165.141.26 62.210.221.180 217.128.202.78 24.202.164.49 62.49.119.69 67.102.65.3 220.160.150.208
</Limit>

<Files .htaccess>
order allow,deny
deny from all
</Files>

extras
2-28-06, 10:10 AM
As keyplt suggestd, adding 301 to the RedirectMatch will reduce 302 redirects.
(I fon't think you need to remove the third redirect, though.)

Also, this will create 302 redirects:
ErrorDocument 404 http://asiarecipe.com/404.html

This won't:
ErrorDocument 404 /404.html


This line seems wrong. Remove it or specify the path.
ErrorDocument 403

And adding the code for missing trailing slash may reduce the 302 redirects if you are using the domain name with 'www'.
RewriteEngine On
RewriteCond s%{HTTPS} ^((s)on|s.*)$ [NC]
RewriteRule ^/*(.+/)?([^.]*[^/])$ http%2://%{HTTP_HOST}/$1$2/ [L,R=301]
http://check-these.info/RewriteRule.html

Ajarn
3-2-06, 07:39 AM
I made the changes that keyplyr suggested, and everything seems back to normal.

Thanks, all :)