https://www.icyphoenix.com/viewtopic.php?f=35&t=5258
-----------------------------------
borbo
Sat 03 Jan, 2009 19:48

Htaccess Redirect Error?
-----------------------------------
hello there and happy new year to everybody.

without touching anything to my ip files suddenly my site redirects all its visitors to http://127.0.0.1/.... :evil: 


renaming my roots htaccess file to htaccess.bak everythink works..

Why is this happenning?i didnt make any changes to my files for months?

i know its not much safe to run my site without an htaccess file so can anybody help me find a solution?

thank you very much


-----------------------------------
tormentor
Sat 03 Jan, 2009 20:04

Re: Htaccess Redirect Error?
-----------------------------------
Without knowing what's happening on your site , if I were you I would comment each line and uncomment them one by one or by groups till finding where is the problem.


-----------------------------------
borbo
Sat 03 Jan, 2009 20:21

Re: Htaccess Redirect Error?
-----------------------------------
I thought something like this but i'm wondering why this is happenning?


-----------------------------------
Informpro
Sat 03 Jan, 2009 20:22

Re: Htaccess Redirect Error?
-----------------------------------
The file please


-----------------------------------
borbo
Sat 03 Jan, 2009 20:28

Re: Htaccess Redirect Error?
-----------------------------------
commenting the lines below everything works

[code]# SANTY
RewriteCond %{HTTP_REFERER} ^.*$
RewriteRule ^.*%27.*$ http://127.0.0.1/ [redirect,last]
RewriteRule ^.*%25.*$ http://127.0.0.1/ [redirect,last]
RewriteRule ^.*rush=.*$ http://127.0.0.1/ [redirect,last]
RewriteRule ^.*echr.*$ http://127.0.0.1/ [redirect,last]
RewriteRule ^.*esystem.*$ http://127.0.0.1/ [redirect,last]
RewriteRule ^.*wget.*$ http://127.0.0.1/ [redirect,last]
RewriteCond %{HTTP_COOKIE}% s:(.*):%22test1%22%3b
RewriteRule ^.*$ http://127.0.0.1/ [R,L][/code]


EDIT: this line,the last one seems to be the problematic 


[code]RewriteRule ^.*$ http://127.0.0.1/ [R,L][/code]


-----------------------------------
Informpro
Sat 03 Jan, 2009 21:13

Re: Htaccess Redirect Error?
-----------------------------------
replace 127.0.0.1 by ur website ;)


-----------------------------------
borbo
Sun 04 Jan, 2009 00:57

Re: Htaccess Redirect Error?
-----------------------------------
thank you very much [b]Informpro[/b],


-----------------------------------
Chaotic
Sun 04 Jan, 2009 02:58

Re: Htaccess Redirect Error?
-----------------------------------
Just for completion purposes, did this fix your problem?


-----------------------------------
Lopalong
Sun 04 Jan, 2009 03:58

Re: Htaccess Redirect Error?
-----------------------------------
@ informpro.

Why on Earth would you recommend that someone redirects a very bad WORM into their url, rather than away from it. ?

http://en.wikipedia.org/wiki/Santy

@ borbo

Have you been inside your cPanel of late and changed anything such as hot-linking prevention or anything else that writes to the .htaccess file. ?

Also: Which url below reflects your forum url the best.

http://yoursite.com/your-forum/forum.php

or

http://yoursite.com/forum.php


-----------------------------------
leemartin44
Sun 04 Jan, 2009 06:02

Re: Htaccess Redirect Error?
-----------------------------------
I just uploaded Icey and got the same issue so I deleted the file, strange :mrorange:


-----------------------------------
Lopalong
Sun 04 Jan, 2009 06:19

Re: Htaccess Redirect Error?
-----------------------------------
And of course you did upload the file in binary?

And to both of you:

Your website url is ?

Because none of us are mind readers. :P


