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

Duncan Hill dunkaz at gmail.com
Mon Apr 12 11:00:43 CDT 2010

On Sun, 11 Apr 2010 17:05:12 +0200, Joel D Canfield <joel at bizba6.com>  

> 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
> http://spinhead.com/sh/thefile.asp
> 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
> http://spinhead.com/thefile.asp
> 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.
> joel

Looks like a job for mod_rewrite in your htaccess ......

this might give you some good ideas:

Good luck


More information about the thelist mailing list