From: Robert K. <rl...@al...> - 2011-02-14 06:09:09
|
On Mon, 14 Feb 2011 09:54:59 +0900, Gernot Hassenpflug wrote: > On Mon, Feb 14, 2011 at 9:49 AM, Robert Krawitz <rl...@al...> wrote: >> One of the recent Sourceforge updates broke the redirection from >> http://gutenprint.sourceforge.net to >> http://gimp-print.sourceforge.net. I put an index.html in >> gutenprint.sourceforge.net pointing to gimp-print.sourceforge.net, and >> remved the base URL declaration in gimp-print.sourceforge.net pointing >> to gutenprint.sourceforge.net, but that's not going to help people who >> have links to http://gutenprint.sourceforge.net/something. Does >> anyone know the necessary things to do in gutenprint.sourceforge.net >> to ensure that all URLs get redirected to gimp-print.sourceforge.net? > > Maybe something like this on the old server (I do this to redirect > from HTTP to HTTPS): > 1st match line: for root directory redirection > 2nd match line: for some subdir request URL redirection. > > RewriteEngine On > RedirectMatch 301 ^/$ https://new-domain-name/root-dir/ > RedirectMatch 301 ^/(.*)$ https://new-domain-name/$1 Putting this kind of thing in the top level .htaccess worked. Thanks! -- Robert Krawitz <rl...@al...> Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2 Member of the League for Programming Freedom -- http://ProgFree.org Project lead for Gutenprint -- http://gimp-print.sourceforge.net "Linux doesn't dictate how I work, I dictate how Linux works." --Eric Crampton |