httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Konzack <linux4miche...@freenet.de>
Subject Re: [users@httpd] How to disable errors and redirect allways to default.php
Date Mon, 21 Aug 2006 15:59:00 GMT
Am 2006-08-21 09:43:08, schrieb Joshua Slive:

> Those will only work if php is running as a CGI.
> 
> The easy (but perhaps hackish) way to solve this is
> ErrorDocument /default.php

OK

> But make sure to have your php script reset the Status header so that
> clients don't receive a 404.  (I assume that is possible; I've never
> tried it myself.)

I will try it...

> Other than that, mod_rewrite could certainly do this.  How complicated
> it would be would depend on your exact requirements.  (For example,
> are there some real files in the filesystem that should be served if
> they are requested, or does *every* request (including for images) on

Right EVERY request.
The script know, which KeyWords are pics, ogg or whatever.
It took me some time to get it running corretly.  ;-)

> this site go to /default.php.)  In the simplest case:
> RewriteEngine On
> RewriteRule !^/default.php /default.php

OK.


Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message