开发者

.htaccess to redirect all domain URLs

开发者 https://www.devze.com 2023-01-22 17:40 出处:网络
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 .h

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

0

精彩评论

暂无评论...
验证码 换一张
取 消