Welcome to WebmasterWorld Guest from 54.221.87.97

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess Question

Can I force Apache to redirect all traffic?

     

wifi on the fly

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

10+ Year Member



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.

wifi on the fly

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

10+ Year Member



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

jdMorgan

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

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



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

Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month