Hi guys, Anyone know how, via .htaccess in htdocs/, to make *all* web requests return a specified document instead? I'm thinking of the occassions when I take a website (LNC) down to play with it and I want everyone to see a message in a file elsewhere, like htdocs/placeholder.html instead. Cheers, -- James Green jg@cyberstorm.demon.co.uk Site Manager jg@linuxnewbie.com LinuxNewbie.com LNC http://www.cyberstorm.demon.co.uk/ [ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Sunday, February 20, 2000, 10:54:14 PM, you wrote:
Anyone know how, via .htaccess in htdocs/, to make *all* web requests return a specified document instead?
Redirect /* http://www.whatever.doodah.com/message.html
I'm thinking of the occassions when I take a website (LNC) down to play with it and I want everyone to see a message in a file elsewhere, like htdocs/placeholder.html instead.
Regards, Martyn -- The Strangerers Mailing list - http://www.onelist.com/community/strangerers The UK Windows 2000 Mailing List - http://www.onelist.com/community/win2000uk [ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
jg@cyberstorm.demon.co.uk wrote:
Hi guys,
Anyone know how, via .htaccess in htdocs/, to make *all* web requests return a specified document instead?
I'm thinking of the occassions when I take a website (LNC) down to play with it and I want everyone to see a message in a file elsewhere, like htdocs/placeholder.html instead.
Use the ErrorDocument directive. See p45 of Apache: the Definitive Guide. O'Reilly. [ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
participants (3)
-
jg@cyberstorm.demon.co.uk -
Martyn Drake -
raph