httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <dferra...@gmail.com>
Subject Re: [users@httpd] Any Modules required for ErrorDocument?
Date Tue, 04 Oct 2016 14:26:27 GMT
Hello,

Redirect takes at least 2 arguments, a request and a destination. This
directive depends on mod_alias module.

Eg: Redirect /something /otherthing
This will redirect if someone requests /something /somethingblablabla to
/otherthing or /otherthingblablabla


ErrorDocument is a core directive (no extra modules needed) and takes 2
arguments and is used this way:
Eg: ErrorDocument 404 /path/to/404errorpage.html
This path is relative to DocumentRoot.

For further reference please use the official docs:
http://httpd.apache.org/docs/2.4/mod/core.html#errordocument

2016-10-04 14:18 GMT+02:00 Petr Gajdos <pgajdos@suse.cz>:

> Hello,
>
> On Tue, Oct 04, 2016 at 02:54:45PM +0300, Jayaram Ponnusamy wrote:
> > Redirect 404 /sites/en_US/404
> > ErrorDocument 404 /sites/en_US/404
>
> not sure what you want to achieve with Redirect directive, but an
> example how to use ErrorDocument directive is here:
>
> https://github.com/pgajdos/apache-rex/tree/master/core-ErrorDocument-basic
>
> Petr
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
*Daniel Ferradal*
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

Mime
View raw message