LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-14-2007, 05:48 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[Apache 2.x] domain name re-mapping


I have a domain "http://www.aaa.com/test" - when someone hits that domain I want them to go to "http://www.xxx.com/" - I don't want to do a redirection but rather a name mapping. Is there any way to do it?

Thanks.
 
Old 04-14-2007, 08:37 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
It's simple to have http://www.xxx.com have the same content as http://www.aaa.com/test. However, it sounds to me as though if someone types http://www.aaa.com/test into their browser's address bar, you want that to be replaced automatically with http://www.xxx.com...without redirecting them. One way to do that would be to use Apache's mod_rewrite and have a rewrite rule for the directory that http://www.aaa.com/test points to, and rewrite the request to http://www.xxx.com. Would that work for you? Otherwise, I have no idea how you would do that if not via a redirect. Even having Apache return a 301 code is a redirect.
 
  


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
why XP and 98 PCs can't join domain for accessing those mapping drives in Linux Samba kkeith Linux - Newbie 1 07-21-2006 01:26 AM
POstfix domain mapping, how? kuplo SUSE / openSUSE 1 12-14-2005 09:56 PM
IP address to domain name mapping htm Linux - Software 0 06-20-2004 07:16 PM
how to fix imap wrong domain mapping problem? htm Linux - Networking 29 04-25-2004 11:24 AM
Mapping a network drive from Windows 2k to an ftp, Apache/1.3.27 Server DumbWindow$User General 5 04-08-2004 12:16 PM

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

All times are GMT -5. The time now is 03:59 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