LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] URL Redirection in Apache

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell