Htaccess Redirect Error?


Subject: 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

Subject: 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.

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

Subject: Re: Htaccess Redirect Error?
The file please

Profile PM  
Subject: Re: Htaccess Redirect Error?
commenting the lines below everything works

Code: [Download] [Hide]
  1. # SANTY  
  2. RewriteCond %{HTTP_REFERER} ^.*$  
  3. RewriteRule ^.*%27.*$ http://127.0.0.1/ [redirect,last]  
  4. RewriteRule ^.*%25.*$ http://127.0.0.1/ [redirect,last]  
  5. RewriteRule ^.*rush=.*$ http://127.0.0.1/ [redirect,last]  
  6. RewriteRule ^.*echr.*$ http://127.0.0.1/ [redirect,last]  
  7. RewriteRule ^.*esystem.*$ http://127.0.0.1/ [redirect,last]  
  8. RewriteRule ^.*wget.*$ http://127.0.0.1/ [redirect,last]  
  9. RewriteCond %{HTTP_COOKIE}% s:(.*):%22test1%22%3b  
  10. RewriteRule ^.*$ http://127.0.0.1/ [R,L] 



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


Code: [Download] [Hide]
  1. RewriteRule ^.*$ http://127.0.0.1/ [R,L] 

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

Profile PM  
Subject: Re: Htaccess Redirect Error?
thank you very much Informpro,

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

Inactive User
Subject: 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. ?

h**p://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.

h**p://yoursite.com/your-forum/forum.php

or

h**p://yoursite.com/forum.php

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

Profile PM  
Inactive User
Subject: 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


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0962s (PHP: 21% SQL: 79%)
SQL queries: 10 - Debug Off - GZIP Enabled