LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Top-Level Domain rewrite using mod_rewrite in Apache2 (https://www.linuxquestions.org/questions/linux-server-73/top-level-domain-rewrite-using-mod_rewrite-in-apache2-564267/)

subcon 06-24-2007 11:33 PM

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


All times are GMT -5. The time now is 12:41 AM.