retiring a domain, traffic to go to another

Using a single web hosting account to host multiple sites

retiring a domain, traffic to go to another

Postby rsleventhal » Fri May 16, 2008 7:46 am

Hi all,

I've a .com domain which I'm retiring entirely. The domain exists, but no content there anymore.

The idea is that any request for the .com domain with *anything* trailing the domain (either / or /file or /path/file) be directed to the .net domain's homepage.

How can I cover all these criteria?

Thanks in advance,
-Ray
rsleventhal
 
Posts: 15
Joined: Thu May 15, 2008 7:17 am

Postby richardk » Fri May 16, 2008 4:36 pm

.*

Try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule .* http://www.example.net/? [R=301,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby rsleventhal » Mon May 19, 2008 4:32 am

richardk, that worked a treat.

Thank you!

Kind regards,
-Ray
rsleventhal
 
Posts: 15
Joined: Thu May 15, 2008 7:17 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 23 guests

cron