[thelist] using PHP to bounce old URLs to new paths

Joel D Canfield joel at bizba6.com
Sun Apr 11 10:05:12 CDT 2010

when I first set up multiple sites on my previous hosting (classic ASP) I
created directories for each domain which resulted in URLs like

 http://tunehenge.com/th/anotherfolder/file.asp or

and now that I'm moving all my hosting to a nice little UNIX only place,
using PHP, I'd like to have those links resolve to

 http://tunehenge.com/anotherfolder/file.asp and

without the subdirectory, which is not part of the visible path on the new
hosting. I'll bet there's a simple way to do this. I'm just not sure what to
Google to find it.


More information about the thelist mailing list