two domains... one site... what to do?
I've got a somedomain.org site and I took the somedomain.com too because people seem to get mixed up.
The question is, what to do w/the .com. Currently, I'm at a shared hosting set up with cpanel and set up a "redirect" in their cpanel applet. So anybody who uses .com ends up at .org.
But I'm moving shortly to a vps I'm managing myself. So I have some different options now, maybe. Do I want .com users to be redirected to .org or is there some better idea? Suggestions?
I've see stuff about "301 redirects" somewhere but don't know beans about that.
pr0gr4mm3r posted this at 11:52 — 16th February 2011.
He has: 1,502 posts
Joined: Sep 2006
What kind of server management software (cPanel, Plesk, if any) are you using on your new VPS?
aharown07 posted this at 14:16 — 16th February 2011.
They have: 43 posts
Joined: Oct 2008
Not using any. All command line.... which I'm pretty new to but the theory is to get more resource per dollar by not paying for management & not paying for resource hungry control panels.
So far, it's going pretty well. I've got two sites working on the server (very simple ones) and plan to move "the big one" this weekend.
Could not have done it without vpsBible dot com (I'd link but I can't remember if that's permitted here or not)
So I'm hosted at Linode and the server is Ubuntu Linux 10.04 LTS. Using nginx as the web server. Last night I found instructions for doing a redirect in nginx. It's about a three step process. Not too bad. That's probably what I'll do. Just wasn't sure if there was a better idea like maybe having the .com display a page that says "Hey, you've got the wrong url, how about going to ....org" Could do that I guess, but is there any advantage?
(I should probably mention that Linode has a control panel, but it is pretty much for managing the basics like DNS and rebooting the virtual server (though you can do that from the command line, too). But it has some powerful features like installing your OS from an image, managing copies of disk images, etc. So that's nice. But it doesn't manage your web server at all.)
TrafficNova posted this at 15:26 — 27th February 2011.
They have: 6 posts
Joined: Feb 2011
The simplest thing to do would be to put a redirect in the .htaccess file in the root of your .com website to do a 301 redirect to your .org website, assuming you are using apache. Alternativley you should be able to configure the webserver to do the redirect for you.
Google .htaccess redirects and you should be able to find loads of examples.
Increase traffic with our free advertising & link exchange system
aharown07 posted this at 12:14 — 28th February 2011.
They have: 43 posts
Joined: Oct 2008
Thanks.
If redirect is the standard way/best way, I know how to do that.
I'm using nginx as web server, so no .htaccess, but it's pretty straightforward.
mike222 posted this at 20:23 — 7th March 2011.
They have: 2 posts
Joined: Mar 2011
This may help you
WWW Redirect with nginx
WWW redirect requires rewrite module, but it is included as standard HTTP modules during compilation of nginx. All Linux distribution packages that I’ve tested with include this feature.
Add this code to the top of the page, separately from the server {} section for the preferred canonical name.
For instance, if you like to redirect to non-www, add the following code:
server {
listen 80;
server_name www.example.com;
rewrite ^/(.*) http://example.com/$1 permanent;
}
The word permanent is key. It turns the redirect into 301 redirection. After this block, you may configure the domain without www.
Here is the code for redirecting non-www to www:
server {
listen 80;
server_name example.com;
rewrite ^/(.*) http://www.example.com/$1 permanent;
}
Master Reseller Hosting
bernard11 posted this at 09:49 — 5th April 2011.
They have: 1 posts
Joined: Apr 2011
If the content is the same on all three sites, two of the sites (maybe even all three) will be punished by the search engines for duplicate content. Therefore, it is probably best to have different content on each site or to make 301 redirects from each domain to the main site.
_____________
Bernard
Improve English Grammar
The English Forum
English Communication
Learn English ONline
aharown07 posted this at 15:48 — 5th April 2011.
They have: 43 posts
Joined: Oct 2008
Thanks. Hadn't thought about SEO impact. I've got all set up with redirects now though anyway. Sounds like it's the way to go for multiple reasons.
loanspanel posted this at 16:22 — 20th July 2011.
They have: 2 posts
Joined: Jul 2011
Add this code to the top of the page, separately from the server {} section for the preferred canonical name.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.