Ups, this directive (and just that one):

Redirect permanent .* http://www.b-of-a.com

should be used in the VirtualHost section for the old domain. Sorry for the
confusion copy-paste mistake from one of my config files :)


On Sat, May 9, 2009 at 9:25 AM, Igor Cicimov <icici...@gmail.com> wrote:

> Maybe something like this:
>
> RewriteEngine On
> RewriteCond %{HTTP_HOST} ^www\.merill-lynch\.com$
> RewriteRule .* http://www.b-of-a.com [R=301,L]
>
> or
>
> RewriteEngine On
> RewriteCond %{HTTP_HOST} ^www\.merill-lynch\.com$
> Redirect permanent .* http://www.b-of-a.com
>
> Cheers,
>
> Igor
>
>
> On Sat, May 9, 2009 at 9:03 AM, Evan Platt <e...@espphotography.com>wrote:
>
>> At 03:58 PM 5/8/2009, you wrote:
>>
>>> This has probably been asked before, but I'm not sure how to search for
>>> it in the archives.
>>>
>>> I have an Apache server, and a domain name. Now, my domain name changes.
>>> The web pages content does not change, only the domain.
>>>
>>> As an illustrative example, lets say that it used to be
>>> www.merrill-lynch.com, and is now changing to www.b-of-a.com.
>>>
>>> I changed in my Apache conf file, the ServerName from
>>> ServerName www.merrill-lynch.com:80
>>> to
>>> ServerName www.b-of-a.com:80
>>>
>>> But, when I go to the old domain name, it shows up in the address line of
>>> the browser. I want the NEW domain name to show there.
>>>
>>> I tried changing UseCanonicalName from Off to On, but that made no
>>> difference.
>>>
>>> As another example, you can go to www.lotus.com, they were bought by IBM
>>> awhile ago. You are jumped to an ibm.com website.
>>>
>>> I only have one server, so I can't redirect from one to another. When
>>> someone goes to my old domain, I want it to look like they are redirected to
>>> my new one. Is there some way to do this with one Apache server? For extra
>>> credit, I would like to avoid Virtual Hosts if possible.
>>>
>>
>> I believe mod_rewrite?
>> http://httpd.apache.org/docs/2.0/misc/rewriteguide.html  Never used it,
>> but I think that would accomplish what you're trying to do....
>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>

Reply via email to