How to point 2 different domains onto 1 website?

Status
Not open for further replies.

desibreaker

Banned
Banned
494
2009
5
0
hi there,
well i have a .com domain for my website and recently i bought a .ws domain name, so my question how can i set up two different domains name pointing onto one website ip address. Registrar is with godaddy and the website hosted on a vps.
 
7 comments
hi there,
well i have a .com domain for my website and recently i bought a .ws domain name, so my question how can i set up two different domains name pointing onto one website ip address. Registrar is with godaddy and the website hosted on a vps.


Just forward 1 to the other, use domain forwarding
 
You can do it easy by using htaccess.

Code:
# This allows you to redirect your entire website to any other domain
Redirect 301 / [url]http://example.com/[/url]

if that doesn't work then you can use.

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]'

This .htaccess option of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
 
Better do what WDF said: redirect one to the other, because if your site can be reached on both domains, it may be considered as duplicate content by search engines.
 
Status
Not open for further replies.
Back
Top