From: Clifton W. <cli...@gm...> - 2005-06-03 22:52:18
|
It depends on what you are trying to rewrite. If you are trying to rewrite specific pages to somewhere else, mod_rewrite is the way to go. If you have a whole bunch of pages that need to go elsewhere, you could write a Slash-based perl script to do it. I'd need more information to offer any kind of serious advice. - Cliff On 4/30/05, Shane <sh...@lo...> wrote: >=20 > On Apr 27, 2005, at 7:57 PM, George Clark wrote: >=20 > > Hi all, > > > > Is there anyone who has figured out how to get the Apache redirect > > to work? > > > > either in .htaccess file, or in the apache config? > > > > I have some old URLs that I really need to somehow redirect out of > > my slash > > host into a different host, and nothing that I've tried works. > > > > (Hardcode it in a perl module someplace??? Is that all that's > > left? I'm > > running R41 ) > > > > With the old slashcode I had everything under a single hostname. > > Most has been > > moved to separate virtual hosts, but I have a few "simple" URLs > > that we use in > > some publicity ...../ye was used for kids to sign up for free > > airplane rides. > > (Young Eagles). We have an event upcoming and I can't redirect > > www......org/ye over to a host where we have a signup page. > > I've got a new > > virtual host for the event, but some people might still find or use > > the old > > address. > > > > Thanks, > > George >=20 > This gave me a bit of frustration a while back too. I think some cmds > worked if they were in the .htaccess file. Which, to me, is an > abomination. >=20 > I'd never really taken the time to sit down and read through the > mod_rewrite docs, so I attributed it not really working to my laziness. >=20 > Here's an example of some of the rules I was messing with: >=20 > <IfModule mod_rewrite.c> > RewriteEngine on > RewriteLog /usr/local/slash/site/a2z.dyndns.org/htdocs/rewrite.txt > RewriteLogLevel 1 > #RewriteRule ^foo\.txt$ bar.txt > #RewriteRule ^foo\.txt$ bar.txt [R] > </IfModule> >=20 > Note, I didn't venture so far as to modify Slash's Apache code. I > would hope that wouldn't be needed. >=20 > Anyone have any more experience with this that can pipe up? >=20 > Shane >=20 >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great events, = 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=3D20 > _______________________________________________ > Slashcode-general mailing list > Sla...@li... > https://lists.sourceforge.net/lists/listinfo/slashcode-general > |