Two apache questions

Miles Beck plug-discuss@lists.plug.phoenix.az.us
Fri, 10 Jan 2003 15:25:25 -0000


Hello,

I have a couple apache questions.

I have two domain names, the second domain name is a mispelling of the first.
We registered this in the event that someone mispells the domain. The
mispelled name is only one letter off from the correctly spelled name. Which
is the best way to have someone redirected from www.mispellednamefoo.com
www.correctlyspellednamefoo.com.

The second issue is a DocumentRoot issue. On our server the document root now
is /var/www/. We would like customers to be able to only use the domain name.
As it is now to get to the customers php page we have to specify the entire
url to the shopping cart which is /var/www/xcart/customer/home.php. When I
specified the previous path in DocumentRoot quite a few images were broken and
then we could no longer log in to the admin page. Would a symbolic link from
/var/www/xcart/customer/home.php to /var/www/index.html correct this issue?

Thanks,

-Miles