homepage Welcome to WebmasterWorld Guest from 54.198.157.6
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess Question
Can I force Apache to redirect all traffic?
wifi on the fly




msg:1517335
 8:26 pm on May 19, 2004 (gmt 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.

 

wifi on the fly




msg:1517336
 7:16 pm on May 20, 2004 (gmt 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

jdMorgan




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

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

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved