Welcome to WebmasterWorld Guest from 54.196.107.247

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess Question

Can I force Apache to redirect all traffic?

     
8:26 pm on May 19, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 9, 2003
posts:60
votes: 0


I am trying to setup an .htaccess so Apache can respond to any http requests. Basically I am going to force certain IP's to a certain box. That box needs to take all requests for any site and redirect it to the main index on this box.

404's are working fine and I have a Rewrite rule that will do certain things, but my problem lies in accepting requests from any site.

Any help would rock.

7:16 pm on May 20, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 9, 2003
posts:60
votes: 0


More info on what I am attempting.

I am trying to setup a proxy for certain customers to redirect them to. (non-paying customers) Instead of just shutting down an IP address we are trying to setup a redirect so that IP goes to our "shutdown box".

Apache needs to take any request that a customer would go to and redirect it to the index.html on this box.

So if someone goes to domain.com it will take them to shutdownbox.com/index.html

7:44 pm on May 20, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


I'd suggest you set up mod_proxy on "domain.com" using ProxyPass to handle requests for "shutdownbox.com".

Jim