LeeCHeSSS
Wed 15th Jan '03, 3:24pm
Ok, short explanation of my problem:
I'm trying to use ErrorDocument to get people automatically redirected to my site when they visit a non-existant location on the server.
I'm trying to do this with:<Directory /home/danny>
ErrorDocument 404 /home/danny/sites/www.online-roleplaying.com/index.php
</Directory>
My site used to be reachable through 2 urls: www.online-roleplaying.com (http://www.online-roleplaying.com) and www.forasake.com/~danny (http://www.forasake.com/~danny)
On both urls it doesn't work and here's why: it respectively tries to redirect to home/danny/sites/www.online-roleplaying.com/home/danny/sites/www.online-roleplaying.com/index.php and /var/www/html/home/danny/sites/www.online-roleplaying.com/index.php
I've tried loads of things to make it use the path given with ErrorDocument starting from the toplevel directory, but alas...
Anyone know how to fix this?
I'm trying to use ErrorDocument to get people automatically redirected to my site when they visit a non-existant location on the server.
I'm trying to do this with:<Directory /home/danny>
ErrorDocument 404 /home/danny/sites/www.online-roleplaying.com/index.php
</Directory>
My site used to be reachable through 2 urls: www.online-roleplaying.com (http://www.online-roleplaying.com) and www.forasake.com/~danny (http://www.forasake.com/~danny)
On both urls it doesn't work and here's why: it respectively tries to redirect to home/danny/sites/www.online-roleplaying.com/home/danny/sites/www.online-roleplaying.com/index.php and /var/www/html/home/danny/sites/www.online-roleplaying.com/index.php
I've tried loads of things to make it use the path given with ErrorDocument starting from the toplevel directory, but alas...
Anyone know how to fix this?