123456 Posted June 12, 2008 Share Posted June 12, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/109963-needs-help-with-redirection/ Share on other sites More sharing options...
123456 Posted June 19, 2008 Author Share Posted June 19, 2008 Hey guys I have it pretty much working now. My problem is that I have any http request redirected. But how do I force https requests to be redirected too? Quote Link to comment https://forums.phpfreaks.com/topic/109963-needs-help-with-redirection/#findComment-569152 Share on other sites More sharing options...
123456 Posted June 19, 2008 Author Share Posted June 19, 2008 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] Quote Link to comment https://forums.phpfreaks.com/topic/109963-needs-help-with-redirection/#findComment-569198 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.