Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Redirect window web site to ubuntu web site |
|
Author |
|
hshelat
Joined: 08 Aug 2010 Posts: 6 Location: NJ
|
Posted: Sun 08 Aug '10 18:05 Post subject: Redirect window web site to ubuntu web site |
|
|
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: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 09 Aug '10 20:51 Post subject: |
|
|
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 |
|
|
|
|
|
|