[thelist] Redirect urls

Mark Groen evolt at markgroen.com
Sat Jul 22 20:28:28 CDT 2006


On Sat, 2006-07-22 at 17:55 -0400, Michele Foster wrote:
> Hi all ...
> 
> I'm trying to redirect all requests to http://wizardev.ca/gallery*.* and
> send them over to http://isitbeertimeyet.ca/.  I can't seem to get this
> figured out.  It's Apache, I'm not sure what version number.
> 
> This only does the /gallery, but not something like

Yup, except the path after view_photo below NOT is carried, which is I'm
guessing is what you are wanting?

> /gallery/view_photo.php?set_albumName=TulipFest-2002&id=tulip17  which is
> what I need.
> Redirect permanent /gallery http://isitbeertimeyet.ca/

This should copy any path after the /gallery/view_photo, we're assuming
that "?set_albumName=TulipFest-2002&id=tulip17" is valid on the other
domain:

RewriteEngine on
RewriteRule   ^/gallery/view_photo(.+)  http://isitbeertimeyet.ca/~$1  [R,L]

-- 
cheers,

        Mark




More information about the thelist mailing list