thejerm Posted April 17, 2005 Posted April 17, 2005 Is there a way (probably with .htaccess) to divert all my sites traffic (index pages, and individual pages, sub folders, subdomains, etc) to one page while i do some maintenance? Quote
TweezerMan Posted April 18, 2005 Posted April 18, 2005 The tricky part in this is setting up the redirect so that the target page does not get redirected as well. It seems to me that the easiest way to avoid this is to create the page you're going to display while your site is down with a different extension than what you use for the regular pages on your site. Since your web site appears to use .php pages, I'd suggest creating a .html page to redirect your site to. Then you could use the following directive in your .htaccess file: >RedirectMatch temp .*\.php$ http://www.thejerm.org/under_construction.html This will redirect all *.php page requests to /under_construction.html. I believe you will need to add this directive to the .htaccess file in your /public_html directory, as well as to the .htaccess file in each subdomain's directory (/public_html/subdomain). Hope this helps... Quote
thejerm Posted April 18, 2005 Author Posted April 18, 2005 (edited) Thanks TCH-David you and TCH Rock . Do not forget MT 3.16 comes out today. Edited April 18, 2005 by thejerm Quote
TweezerMan Posted April 18, 2005 Posted April 18, 2005 Do not forget MT 3.16 comes out today. <{POST_SNAPBACK}> Maybe - the official word is to watch for the release today, but it is scheduled to be released "this week". I'll believe it when I see it. Quote
TweezerMan Posted April 18, 2005 Posted April 18, 2005 Well, what do you know - MT 3.16 was released today! Quote
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.