RE: htaccess redirect of multi pages to multi destinations
by Complex <complex_hwg(at)yahoo.com>
|
Date: |
Mon, 5 Aug 2002 16:20:51 -0700 (PDT) |
To: |
Brian V Bonini <b-bonini(at)cox.net>, HWG Techniques <hwg-techniques(at)hwg.org> |
In-Reply-To: |
cox |
|
todo: View
Thread,
Original
|
|
Unfortunately, that doesn't work for me because the file names and
paths are not the same.
In the past, I had to move all files out of the "/sos/" directory (!!)
into the root directory. I now have an .htaccess file in the /sos/
directory doing what you suggested.
However, my current (mistake?) situation is that I've made most of the
files into SHTML files ** and** I've moved files into new directories
** and ** changed some file names. I'm trying to fix a directory
structure that made some sense when we were using frames. :-) So
"/product/prices/body/mac.html" has now become "/prices/index.shtml" or
whatever.
If all else fails, I'll make a bunch of redirect files, but the
.htaccess solution would be better for the customers and for me, and
would be _so_ much more elegant.
Thanks!
--- Brian V Bonini <b-bonini(at)cox.net> wrote:
> Redirect the entire directory:
>
> Redirect /service http://foo2.bar.com/service
>
>
> -Brian
>
> > -----Original Message-----
> > From: owner-hwg-techniques(at)hwg.org
> > [mailto:owner-hwg-techniques(at)hwg.org]On Behalf Of Complex
> > Sent: Monday, August 05, 2002 5:15 PM
> > To: HWG Techniques
> > Subject: htaccess redirect of multi pages to multi destinations
> >
> >
> > Hello,
> > I searched the archives, the newsgroups, and the web, and
> haven't
> > found a good answer. Please help.
> >
> > I am rearranging the (extremely outdated) pages of my site. I would
> > like to use the .htaccess file to smoothly redirect people from the
> old
> > addresses to the new ones.
> >
> > Unfortunately, I only know how to make .htaccess redirect one page.
> The
> > following works beautifully when it is the sole content of my
> .htaccess
> > file:
> > Redirect permanent /first.html zarathud.org/page1.html
> >
> > If I add to that, then I am suddenly unable to find any page on
> > Zarathud. The one page I found describing how to do multiple pages
> says
> > to list each redirect on its own line:
> > Redirect permanent /first.html zarathud.org/page1.html
> > Redirect permanent /page2.shtml zarathud.org/sub/page2.html
> > Redirect permanent /page3.html zarathud.org/boat/page3.html
> >
> > I also tried several variations: separating the statements by
> commas,
> > semicolons, pipes; only separating the old & new path argument
> pairs by
> > those separators; etc.
> > No matter what, trying to do multi pages has always broken the
> site: I
> > get 500 Internal Server Error for every page on the site.
> >
> > Please help. I need to solve this so I can put the company site up
> > online.
> >
> > Many TIA,
> > Complex
> >
> > =====
> > Note: Any HTML I've typed probably contains spaces or periods to
> > break it in HTML-capable mail readers. (e.g. <.H1>Like This< /H1>
> )
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - Feel better, live better
> > http://health.yahoo.com
=====
Note: Any HTML I've typed probably contains spaces or periods to break it in HTML-capable mail readers. (e.g. <.H1>Like This< /H1> )
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA