LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2008, 03:26 AM   #1
saran_sai
Member
 
Registered: Aug 2008
Posts: 93
Blog Entries: 1

Rep: Reputation: 15
Smile website redirect


Hai Friends

I wil configure one webserver www.mydomain.com

when i type www.mydomain.com in my web browser then it redirectly open some other website like www.yourdomain.com , but i dont how to do this, pls
help me.

Thank u for Advance.
 
Old 10-10-2008, 03:53 AM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
If its in apache as a vhost, you could do simply in the vhost "part" this:

Servername www.mydomain.com
RedirectMatch /* http://www.yourdomain.com

Something like this, but if you dont use apache or u cant modify apache you could us a php script

<?php

header("Location: http://www.yourdomain.com")

?>
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
viewing an externally hosted website from within a given website andrews-mark Linux - Server 6 10-07-2008 12:11 AM
Redirect to SSL-enabled website. haxpor Linux - Networking 1 03-20-2007 02:35 AM
redirect the default main website cccc Linux - Networking 1 08-11-2006 11:52 AM
Redirect sheek Programming 1 07-25-2003 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration