LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-25-2007, 12:33 AM   #1
subcon
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Rep: Reputation: 0
Smile Top-Level Domain rewrite using mod_rewrite in Apache2


Greetings.

I host four domain names:

domain.com
domain.net
domain.org
domain.info

I want to do mod_rewrite for these virtual hosts, so that if someone goes to domain.info, it rewrites it to domain.com. If someone goes to domain.net, it rewrites it to domain.com, and so-forth.

I am an idiot when it comes to regex. can someone tell me how the mod_rewrite segment would look inside a vhost container? Thanks!

subcon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache2 mod_rewrite isn't working vargadanis Linux - Server 3 11-09-2009 09:21 PM
how to add mod_rewrite to apache2 scabrous1 Linux - Software 1 07-07-2006 10:48 AM
Running my own top level domain with BIND9 KneeLess Linux - Networking 4 03-26-2006 07:29 PM
Top Level Domain Names wwnexc Linux - Networking 3 03-12-2006 03:03 PM
DNS & Top Level Domain JJX Linux - Networking 2 03-28-2004 08:56 AM


All times are GMT -5. The time now is 08:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration