Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Redirect all requests to a single page

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Newbie problem  
Author Message
miroul_

External


Since: Aug 13, 2004
Posts: 2



(Msg. 1) Posted: Fri Aug 13, 2004 10:21 am
Post subject: Redirect all requests to a single page
Archived from groups: alt>apache>configuration (more info?)

Hi,

I have to redeploy my web applications. I'll have to stop my app
server and I dont want my users to see any "404" or "Failure of server
APACHE bridge" errors.

How can I configure apache to redirect all the http requests to a
single page (to inform my visitors that a work is in progress) ?

Thanks for any help,
Miroul.

 >> Stay informed about: Redirect all requests to a single page 
Back to top
Login to vote
abuse6

External


Since: Jun 07, 2004
Posts: 18



(Msg. 2) Posted: Fri Aug 13, 2004 10:58 am
Post subject: Re: Redirect all requests to a single page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Miroul scratched out in the sand

 > Hi,
 >
 > I have to redeploy my web applications. I'll have to stop my app
 > server and I dont want my users to see any "404" or "Failure of server
 > APACHE bridge" errors.
 >
 > How can I configure apache to redirect all the http requests to a
 > single page (to inform my visitors that a work is in progress) ?
 >

Use your .htaccess file. Put the name of the temp ¨unavaliable¨ page there.

For example, if you have temp.htm, you put that as the first entry in
your .htaccess file.

You can see an example I had last year while I was doing an upgrade over the
weekend.

<a style='text-decoration: underline;' href="http://www.filesite.org/index_upg.htm" target="_blank">http://www.filesite.org/index_upg.htm</a>

--
kai
<a style='text-decoration: underline;' href="http://www.filesite.org" target="_blank">www.filesite.org</a> || <a style='text-decoration: underline;' href="http://www.perfectreign.com" target="_blank">www.perfectreign.com</a>
g3prod at cotse.net<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Redirect all requests to a single page 
Back to top
Login to vote
miroul_

External


Since: Aug 13, 2004
Posts: 2



(Msg. 3) Posted: Mon Aug 16, 2004 4:50 am
Post subject: Re: Redirect all requests to a single page [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for your help but it still does not work :

I've created a .htaccess file (put it in my doc root) with one line :
/temp.html

Apache return the the following error :
/usr/local/apache2/htdocs/.htaccess: Invalid command '/temp.html',
perhaps mis-spelled or defined by a module not included in the server
configuration

Any idea ?
Thanks.

filesiteguy <abuse DeleteThis @127.0.0.1> wrote in message news:<10hplnr6pne03b7 DeleteThis @corp.supernews.com>...
 > Miroul scratched out in the sand
 >
  > > Hi,
  > >
  > > I have to redeploy my web applications. I'll have to stop my app
  > > server and I dont want my users to see any "404" or "Failure of server
  > > APACHE bridge" errors.
  > >
  > > How can I configure apache to redirect all the http requests to a
  > > single page (to inform my visitors that a work is in progress) ?
  > >
 >
 > Use your .htaccess file. Put the name of the temp ¨unavaliable¨ page there.
 >
 > For example, if you have temp.htm, you put that as the first entry in
 > your .htaccess file.
 >
 > You can see an example I had last year while I was doing an upgrade over the
 > weekend.
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.filesite.org/index_upg.htm</font" target="_blank">http://www.filesite.org/index_upg.htm</font</a>><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Redirect all requests to a single page 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mod_rewrite: redirect all requests to index.php - Hi, I want to add some php scripting features to an existing site, which was build with pure html. My idea is to redirect all requests to the site to an index.php, that acts as a filter. That index.php will do something based on the filename. So all..

how to redirect to a given page when .htacess authentifica.. - Hi, how to redirect to a given page when .htacess authentification fails ? Here is my .htacess : ErrorDocument 401 http://www.mydomain/authFailure.php AuthUserFile /home/mydomain/.htpasswd AuthName "Admin" AuthType Basic <limit GET POST...

Allow only a single file via HTTP - I have my site configured so that it can only be accessed via secure http - HTTPS. However, I want one particular PHP file to be accessed via normal HTTP at port 80. Is it possible? How can I do this? BTW, I am using Apache/2.0.40 on Red Hat Linux. ..

Listen on single interface - Ok, I can't seem to get the Listen directive to work as I think it should. I have: eth0: 10.1.1.1 eth1: 192.168.1.1 eth2: 1.2.3.4 in apache.conf: Listen 192.168.1.1:80 Now when I am on a system at 1.2.3.5 I can telnet in to 1.2.3.4 port 80 and..

Reversing IndexIgnore for a single directory - I have searched the web and groups - the question was asked a number of times but never answered. I use IndexIgnore to disable the displaying of directory indexes. I now find myself in need of allowing directory listings on a single directory. Is there....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]