I would like to redirect example.com and example.com/ALL aswell as example.com/ALL/ALL, exampl开发者_开发问答e.com/ALL/ALL/ALL etc. to example.com/offline.html, temporary. How can I do this through .htaccess ?
ALL = whatever you type Thank you.
Redirect 302 / http://example.com/offline.html
Don't use .htaccess for this.
http://httpd.apache.org/docs/1.3/howto/htaccess.html#when
I'd recommend a proxy server.
Shovels for digging, hoes for sowing.
you just need create an HTML file called App_offline.htm then copy this file to the root of your web application
for more details have a look at:
http://msdn.microsoft.com/en-us/library/f735abw9(VS.85).aspx
精彩评论