![]() |
|
|
|||||||
| Register | Forum FAQ | Search | Today's Posts | Mark Forums Read |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
If you park a domain using cPanel, by default the parked_domain is displayed by the browser address bar. If you prefer to display the main_domain, add this to your .htaccess file.
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?parked_domain\.com [NC]
RewriteRule ^(.*)$ http://www.main_domain.com/$1 [R=301,L]
Cheers, Eric4 Last edited by Matt; 12-27-2006 at 12:04 PM. |
|
||||
|
You can also use the parked domain function in cPanel to achieve a similar thing as the original poster mentioned, with a bit less technical work for you that don't want to get your hands as dirty.
On another note, here is one that will allow you to make all requests to your site have "www" in front of it. All sites we host by default can be accessed with and without the www, but some of you would like "www" only style urls. Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
__________________
::::: 01001100 00110011 00110011 00110111 |