Re: [users@httpd] Configuration of .htaccess file

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

 



Thank you all for your suggestions. It turned out that the answer is quite simple. In the PHP script, the only thing to do is to send a "HTTP 1/1 200 OK" status code. Because this will actually override the previous 404. This was the simple answer to a question which I thought seemed to be very complicated.

/frank
2005-09-26 kl. 16.20 skrev Joshua Slive:

On 9/26/05, Eugene <list-apache@xxxxxxxx> wrote:
I think there's a way to do either.

To redirect while sending the 404 status code to the client:

        ErrorDocument 404 /path/to/script.php

To redirect while NOT sending the 404 status code to the client:

        ErrorDocument 404 http://www.yourserver.com/path/to/script.php

I don't think that is what the OP is looking for.  The second example
will, indeed, not send a 404.  But it will send a 302 and cause the
browser to re-request at the new location.

Joshua.

---------------------------------------------------------------------
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





---------------------------------------------------------------------
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