I need some help... I developed everything on my .net site. But I want to switch it so that the main site is no .com.

I can't, for the life of me, get it to default to .com (and always go to .com in case somebody visits .net).

Can somebody help me here?

THANKS!

link|improve this question

73% accept rate
feedback

1 Answer

up vote 1 down vote accepted

First, in CPanel set up a domain alias (The Addon Domains option), set the 'Document Root' to empty. That will map both example.com and example.net to the same place. Then create a .htaccess file with rewrite rules/conditions to 301 recirect example.net to example.com. That way all your old links will still work.

link|improve this answer
it won't let me add an alias... also now it's telling me that some files aren't found on the server, i'm completely lost now! ha – Shackrock May 23 '11 at 1:38
If your package isn't set up to allow an addon domain you'll need to get in touch with the admin on your server so they can set it up for you. Otherwise you'll have to set up a new domain and add all the data, migrate all the databases and re-do all the settings again – sam May 23 '11 at 1:39
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.