Jump to content

Needs help with redirection


123456

Recommended Posts

Hi Everyone,

  I am pretty new to apache so please try and bare with me. The scenario is this:

 

I have server A that will go down for say 6 hours, will have no power. So in my DNS I want to redirect all requests to server B. This is where I get a bit stuck.  How do I make all redirected incoming requests to server B go to a maintenance page I have created. So basically I need all http, https requests to go to a maintenance page on server B. Also customers have customized links as well so I need something like xxx.com/xxxxxxx.xxx.xx all go to the maintenance page. I was messing with the Mod Rewrite plugin but I can't seem to get it to do what I need.

 

Thanks for any help!

Link to comment
Share on other sites

My current .htaccess file looks like this. How can I tell it to also direct any https requests there as well? Thanks

 

Optionss +FollowSymlinks

RewriteEngine on

RewriteRule !^index.html$ /apache2-default/index.html [R,L]

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.