Re: Help Required for URL Redirection!

From: Date: Fri, 24 Nov 2000 10:14:54 +0000
Subject: Re: Help Required for URL Redirection!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26928@lists.php.net to get a copy of this message
Gabriel wrote: > > Helo Friends, > > I would like to redirect a page to a particular URL without using the header. > Anybody who knows the answer please help me.... > Thanks in Advance! > Regards, > Gabi. mod_rewrite which is standard for most Apache installations can do that for you. I'm in a good mood so here is a link to the manual: http://httpd.apache.org/docs/misc/rewriteguide.html http://httpd.apache.org/docs/mod/mod_rewrite.html And here is an example of how I've used it to move a site from an old location (/freeplay on an old server to freeplay.no on another. from .htm to .shtml as well): RedirectMatch permanent /freeplay(.*)\.htm$ http://www.freeplay.no$1.shtml RedirectMatch permanent /freeplay(.*)\.gif$ http://www.freeplay.no$1.gif -- Paul K Egell-Johnsen Developer/PR Manager zez.org: about code http://zez.org/

« previous php.general (#26928) next »