logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Redirect window web site to ubuntu web site
Author
hshelat



Joined: 08 Aug 2010
Posts: 6
Location: NJ

PostPosted: Sun 08 Aug '10 18:05    Post subject: Redirect window web site to ubuntu web site Reply with quote

I am new to APache. I like to redirect my Intranet site to another web site when users type http://1234/otrs/cusotmer.pl to http://9021/otrs/customer.pl site.

How can I accomplished this? I tried to edit Config httpd file but could not successed.

Thanks,

Hshelat
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7355
Location: Germany, Next to Hamburg

PostPosted: Mon 09 Aug '10 20:51    Post subject: Reply with quote

easiest thing will be a redirect in the first script

Code:

#!/usr/bin/perl
$location = "http://9021/otrs/customer.pl";
print "Status: 301 Moved Permanently\n";
print "Location: $location\n";
print "URI: <$location>\n";
print "Content-type: text/html\r\n\r\n";
Back to top


Reply to topic   Topic: Redirect window web site to ubuntu web site View previous topic :: View next topic
Post new topic   Forum Index -> Apache