Changes between Initial Version and Version 1 of faq/domain/canonical-web-address


Ignore:
Timestamp:
Feb 26, 2008, 3:25:53 PM (16 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/domain/canonical-web-address

    v1 v1  
     1= I have multiple domain names that point to my web site - how to I make it so my preferred domain always appears in the browser address bar? =
     2
     3Many of us have multiple domain names that point to the same web site. For example, you can access our web site by going to mayfirst.org, or www.mayfirst.org, or www.people-link.net, etc.
     4
     5However, we want people to always see mayfirst.org in the address bar of the browser.
     6
     7We do that by adding the following lines to the Web Config settings in the [https://members.mayfirst.org/cp Members Control Panel]:
     8
     9{{{
     10RewriteEngine On
     11RewriteCond %{HTTP_HOST} !^mayfirst\.org$ [NC]
     12RewriteCond %{HTTP_HOST} !^$
     13RewriteRule ^/(.*) http://mayfirst.org/$1 [L,R]
     14}}}
     15
     16You can do the same by replacing `mayfirst.org` with the domain name you want your web site to display in the address bar of the browser.