.htaccess double redirect of a 404 page.
Posted
by peti
on Stack Overflow
See other posts from Stack Overflow
or by peti
Published on 2010-04-26T15:40:14Z
Indexed on
2010/04/26
15:43 UTC
Read the original article
Hit count: 209
htaccess
Hi,
my custom 404.php page is located in /includes/404.php.
My current .htaccess file does the following redirect:
ErrorDocument 404 http://imgpls.localhost/includes/404.php
So the url looks like: mysite.com/includes/404.php .
Basically I need a double redirect: 1) 404 eror page to mysite.com/404.php (so the url looks nice) 2) mysite.com/404.php to mysite.com/includes/404.php where the file actually is.
How can I achieve that? Thanks in advance.
© Stack Overflow or respective owner