[thelist] Apache URL Rewrite ?

David Dorward david at dorward.me.uk
Wed Dec 19 01:47:23 CST 2007


On 19 Dec 2007, at 07:02, Ron Dorman wrote:
> In *newdomain1.com* we have a page (from old domain) with a list links
> to a second party server that displays pages with audio playing.  
> Some of
> these second party pages have links back to PDF files on the old  
> domain.
>
> So, we need to do a rewrite of old URL's (embedded into the second  
> party
> html pages)
> like: *http://olddomain.com/pdf//filename.ext/*
>   to: *http://newdomain1.com/files/pdf//filename.ext/*

Why not just do a simple redirect?

Redirect permanent /pdf/ http://newdomain1.com/files/pdf/

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/





More information about the thelist mailing list