[wellylug] Use of old links by site visitors

Daniel Pittman daniel at rimspace.net
Tue Jan 9 16:20:34 NZDT 2007


John Durham <johndurh at spunge.org> writes:

> After a lot of setting up, and some basic changes, I have been
> checking visitor statistics for my site. Some of them appear to be
> trying to view images that used to be in the /images directory (now in
> the /imgs directory). Without bothering with why they would go for the
> images directly, I'm curious to know if there is a setting for apache
> that will divert such attempts to the correct place so that old links
> might still work? PS: Please don't suggest I create the /images
> directory again so people can swipe pictures!  

There are several solutions:

  Use an alias to map /images to /imgs
  Use Redirect rules to direct traffic from one to the other
  Use an alias to display an informative page about the change
  Use mod_rewrite to remap the URL as appropriate

All of these are detailed in the Apache documentation.

Regards,
        Daniel
-- 
Digital Infrastructure Solutions -- making IT simple, stable and secure
Phone: 0401 155 707        email: contact at digital-infrastructure.com.au
                 http://digital-infrastructure.com.au/




More information about the wellylug mailing list