-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > from stock httpd.conf: > > ... > # Customizable error response (Apache style) > # these come in three flavors > # > # 1) plain text > #ErrorDocument 500 "The server made a boo boo. > # n.b. the (") marks it as text, it does not get output > # > # 2) local redirects > #ErrorDocument 404 /missing.html > # to redirect to local URL /missing.html > #ErrorDocument 404 /cgi-bin/missing_handler.pl > # N.B.: You can redirect to a script or a document using > server-side-includes. > # > # 3) external redirects > #ErrorDocument 402 http://some.other_server.com/subscription_info.html > # N.B.: Many of the environment variables associated with the original > # request will *not* be available to such a script. > ... > > 3) above seems to apply to you. Did you try it? > > /Alexander
Yep , i tried. But the problem is , i want my server reply with a 301 or 302 error code , and then redirect to index.htm , is it possible ? If you just put a ErrorDocument with code 404 , client will still receive a 404 not found error. So i tried to combine Redirect & ErrorDocument directive , but it doesn't seems to work - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw5G68ACgkQvf41sEptMqAkgwCgoO2/jMD+xNM9ZGCCVy0t1EUq HccAnRoWDli83ozItuq0jvP4u/rWeZAw =r6Wr -----END PGP SIGNATURE-----