You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mididoc Productions <ma...@mididoc.com> on 2006/05/29 20:35:20 UTC

[users@httpd] htaccess

hi,

we have in the htaccess file a treatment for errors:

ErrorDocument 403 http://www.ourdomain.com
ErrorDocument 404 http://www.ourdomain.com
ErrorDocument 500 http://www.ourdomain.com

this is for redirecting any user to the mainpage, when he is searching a
file which does not exist.
this works with all files, also without extension.

but when the user inserts for example http://www.ourdomain.com/index.php

the browser jumps into an error message 404 file not found.
he doesn't redirect the user to the mainpage like always.

has anybody an idea to get this working?


many thanks


mike


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


[users@httpd] Re: htaccess

Posted by Joost de Heer <sa...@xs4all.nl>.
Mididoc Productions wrote:
> hi,
>
> we have in the htaccess file a treatment for errors:
>
> ErrorDocument 403 http://www.ourdomain.com
> ErrorDocument 404 http://www.ourdomain.com
> ErrorDocument 500 http://www.ourdomain.com
>
> this is for redirecting any user to the mainpage, when he is searching a
> file which does not exist.
> this works with all files, also without extension.
>
> but when the user inserts for example http://www.ourdomain.com/index.php
>
> the browser jumps into an error message 404 file not found.
> he doesn't redirect the user to the mainpage like always.
>
> has anybody an idea to get this working?

Do you have the proper AllowOverride (FileInfo)?

Joost


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