Re: [users@httpd] How to disable errors and redirect allways to default.php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux