[ILUG] URL Redirection in Apache

Ken Guest kguest at stockbyte.com
Wed Jan 7 15:32:36 GMT 2004


On Wed, 2004-01-07 at 15:16, HAMILTON,DAVID (HP-Ireland,ex2) wrote:
> I need to set Apache up to automagically take any requests to
> http://foo.bar.local/ and redirect them to
> http://server1.bar.local:7779/forms90/f90servlet?form=title.fmx.
> 
> Someone has suggested using mod_rewrite, but I can't make head or tail of
> the documentation (http://httpd.apache.org/docs/misc/rewriteguide.html), and
> am not sure if it is the best option anyway.
> 
> Any ideas?
> 
> 	David.

add these 2 lines to your virtualhost declaration in httpd.conf:

RewriteEngine On 
RewriteRule ^/.*$   http://server1.bar.local:7779/forms.....


k.

-- 

Ken Guest
Senior Developer
Stockbyte Royalty Free Photos
http://www.stockbyte.com



________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________



More information about the ILUG mailing list