nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

web url redirection

This is a discussion on web url redirection within the Web servers forums, part of the Mastering Servers category; Hi. How can i redirect a url. e.g. http://mail.example.com:3000 to http://mail.example.com Please help... Regards Asim...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-01-2009, 09:48 PM
Senior Member
User
 
Join Date: Jul 2006
Posts: 145
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 4
asim.mcp is on a distinguished road
Default web url redirection

Hi.

How can i redirect a url. e.g.
http://mail.example.com:3000 to http://mail.example.com

Please help...


Regards
Asim
Reply With Quote
  #2 (permalink)  
Old 13-01-2009, 12:54 AM
Junior Member
User
 
Join Date: Jan 2009
OS: Solaris
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unixmen is on a distinguished road
Default forward to another website

put this in index of the first website


<html><head>
<META HTTP-EQUIV=Refresh CONTENT="5; URL=http://mail.example.com">
</head><body>
The url of this site has been changed. Please update your bookmarks!
</body></html>



regards
www.unixmen.net team
Reply With Quote
  #3 (permalink)  
Old 20-01-2009, 03:12 PM
toor217's Avatar
Junior Member
User
 
Join Date: Jan 2009
Location: South Africa
OS: FreeBSD 7.0
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
toor217 is on a distinguished road
Default

another way to do it is to if you use apache setup another vhost to catch on that port and use a redirect that way.
Reply With Quote
  #4 (permalink)  
Old 03-03-2009, 08:55 PM
Junior Member
User
 
Join Date: Mar 2009
Location: UK
OS: M$ Windows
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Will is on a distinguished road
Default

If your site is using PHP, you can use this in your php code:

header("Location: http://www.somesite.com");

The header function must come before any other output to the client.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Lighttpd URL Redirection domain.com/dir1/index.html to domain.com/dir1 mumuri Web servers 2 06-06-2008 12:53 PM
Help urgently Rgardign redirection sonaikar Linux software 3 28-06-2005 01:13 AM


All times are GMT +5.5. The time now is 02:08 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38