| 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 | |
| 3 | Many 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 | |
| 5 | However, we want people to always see mayfirst.org in the address bar of the browser. |
| 6 | |
| 7 | We do that by adding the following lines to the Web Config settings in the [https://members.mayfirst.org/cp Members Control Panel]: |
| 8 | |
| 9 | {{{ |
| 10 | RewriteEngine On |
| 11 | RewriteCond %{HTTP_HOST} !^mayfirst\.org$ [NC] |
| 12 | RewriteCond %{HTTP_HOST} !^$ |
| 13 | RewriteRule ^/(.*) http://mayfirst.org/$1 [L,R] |
| 14 | }}} |
| 15 | |
| 16 | You 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. |