PDA

View Full Version : Internal 500 error


Jel
06-13-2005, 10:19 AM
Getting a 500 error when going to aites of mine without the trailing / attached to the end of the url and am a bit confused. Just got a new domain and swapped my old ht access in to this domain, changing the domain name and IP numbers and that's what's causing it I think, as when I delete the htaccess it works OK.

Anyone able to tell me where I'm going wrong on this lot?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rogers-sexsaurus.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rogers-sexsaurus.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.154.65.170.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.154.65.170.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google.com.*$ [NC]
RewriteCond %{REMOTE_ADDR} !^64.x.x.x\..*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?Googlebot-Image*$ [NC]


RewriteCond %{HTTP_REFERER} !^http://216.239.57.104*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.57.104/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.57.104:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.57.104:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.alexa.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.alexa.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.alexa.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.alexa.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.images.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.google.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com:80.*$ [NC]

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$



RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^219\.129\.21\.137$
RewriteRule .* http://www.porn-xxx-porn.com/index.html [R,L]


RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html





ErrorDocument 400 http://www.porn-xxx-porn.com
ErrorDocument 401 http://www.porn-xxx-porn.com
ErrorDocument 403 http://www.porn-xxx-porn.com
ErrorDocument 404 http://www.porn-xxx-porn.com
ErrorDocument 501 http://www.porn-xxx-porn.com
ErrorDocument 502 http://www.porn-xxx-porn.com
ErrorDocument 503 http://www.porn-xxx-porn.com

cd34
06-13-2005, 10:21 AM
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$

You need to do something with it here.

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ - [F,L]

at a minimum

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domaintogoto.com/ [R,L]

if you wanted to redirect it

Jel
06-13-2005, 10:29 AM
Hi cd34,

I actually posted slightly wrong above, but still without the rule tou just pointed out. Have uploaded this one but it's still doing the same thing?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?porn-xxx-porn.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?porn-xxx-porn.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.154.65.170.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://66.154.65.170.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google.com.*$ [NC]
RewriteCond %{REMOTE_ADDR} !^64.x.x.x\..*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?Googlebot-Image*$ [NC]


RewriteCond %{HTTP_REFERER} !^http://216.239.57.104*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.57.104/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.57.104:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://216.239.57.104:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.alexa.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.alexa.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.alexa.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://alexa.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.alexa.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.images.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.google.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.google.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://google.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://images.search.yahoo.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.images.search.yahoo.com:80.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yahoo.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yahoo.com:80.*$ [NC]

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.porn-xxx-porn.com/ [R,L]



RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^219\.129\.21\.137$
RewriteRule .* http://www.porn-xxx-porn.com/index.html [R,L]


RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html





ErrorDocument 400 http://www.porn-xxx-porn.com
ErrorDocument 401 http://www.porn-xxx-porn.com
ErrorDocument 403 http://www.porn-xxx-porn.com
ErrorDocument 404 http://www.porn-xxx-porn.com
ErrorDocument 501 http://www.porn-xxx-porn.com
ErrorDocument 502 http://www.porn-xxx-porn.com
ErrorDocument 503 http://www.porn-xxx-porn.com

Jel
06-13-2005, 10:30 AM
OK I see the duplicate :) lemme fix that up....................

cd34
06-13-2005, 10:30 AM
take this:

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.porn-xxx-porn.com/ [R,L]

make it this:

RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.porn-xxx-porn.com/ [R,L]

Jel
06-13-2005, 10:31 AM
Solved :D

Thanks Sparky |shake