Questions about root domain setup
-
Hi There,
I'm a recent addition to SEOmoz and over the past few weeks I've been trying to figure things out. This whole SEO process has been a bit of a brain burner but its slowly becoming a little more clearer.
For awhile I noticed that I was unable to get Open Site Explorer to display information about my site. It mentioned that that there was not enough data for the URL. Too recent of a site, no links, etc. Eventually I changed the the URL to include "www." and it pulled up results.
I also noticed that a few of my page warnings are because of duplicate page content. One page will be listed as http://enbphotos.com. The other will be listed as http://www.enbphotos.com.
I guess I'm not sure what this all means and how to change it. I'm also not really sure what the terminology even is and something regarding root domain seemed appropriate but I'm not sure if it is accurate.
Any help/suggestions/links would be appreciated!
Thanks,
Chris
-
My mistake - I thought that was the code that enbphotos wanted to add to the .htaccess, however if that is the code it is pretty obvious that the rewrite engine is engaged Alan haha cheers. My apologies for misreading the response.
Other than that I agree with what Alan says...
-
The engine is already invoked, with that code.
Add a few blank lines between RewriteEngine on and the other lines
Keep those other lines together. (I don't think they work)
And put the new code one blank line after invoking the engine.
keep a blank line after the new code.
-- Those other lines say this:
IF a request comes for proofs.enbphotos.com
OR a request for www.proofs.enbphotos.com
THEN redirect it to http://accounts.exposuremanager.com
- but it doesn't work, so either there is a problem (your apache doesn't redirect or some config has turned it off - or it could be that the proofs subdomain has a different document root.
-
what is the small bit or rewrite code that is already in there? Does it already engage the RewriteEngine? If so you don't need that line twice but you can just add your other code below the existing and it should work.
A lot of hosting environments that are on shared servers for instance allow you to put redirects etc in place through interfaces and then create the .htaccess for you...
-
Hi Alan, Thanks again for your response. I just wanted to follow up with you and see if you had any pointers for my below response? It turns out I have a .htaccess already in play. It's for a CNAME/subdomain setup. Do you know if I can just add the bit of code that you linked me too directly below what is already in my htaccess?
-
Thanks very much for your responses! I looked at those threads and I was about to add that bit of redirect code when I noticed I already have an .htaccess uploaded to my server. It has a small bit of code redirecting a subdomain/cname thing.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^proofs.enbphotos.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.proofs.enbphotos.com$
RewriteRule ^.*$ "http://accounts.exposuremanager.com" [R=301,L]Can I just add the other bit of redirect below this?
Thanks again for your help!
-
This is a common issue with sites in relation to duplicate content - I would look at setting up a 301 (permanent) redirect from none www version of your page to the www version.
Have a look at the SeoMoz guide to redirection here - http://www.seomoz.org/learn-seo/redirection
Hope this helps
-
Hello Chris.
I see you have an apache server.
You should be able to add a few lines of redirect code in your .htaccess file in the document root directory.
Here is a response from Ryan Schwab that answers your need to redirect:
http://www.seomoz.org/q/is-there-an-easier-way-from-the-server-to-prevent-duplicate-page-content
Unfortunately, some people have linked to you with www and some without it.
You may suffer a little for a while, but you could come out of it even better than you were before.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google displaying root domain instead of country locale
Hi, For many months now, Google refuses to display the relevant locale in many markets, and instead shows the root domain as number 1 result. The country locale isn't even in the SERP in some countries(!). This only applies for branded searches. It appears Google is treating the root domain as an international landing page or something, while this isn't the case - visitors get redirected automatically based on their Geo-IP to the relevant country locale if they enter the root domain, there is no "flag selector" that people or bots can choose. Site: example.com If someone searches for "example" from Google Canada, they should be met with example.com/en-ca/ as the first result for branded searches. Instead, example.com is ranking, and example.com/en-ca/ is nowhere to be found. This problem is in all our English markets; Canada, India and UK. For non-english countries, branded searches return the relevant locale, but the root domain is often the 2nd result as well. This isn't as bad as the case with the English markets, but still. Any help whatsoever would be greatly appreciated, or if you can recommend great reading assets. I have researched this thoroughly and tried different technical solutions, but nothing has worked so far. Thanks!
Technical SEO | | LeoVegas0 -
Best use of an old domain?
I've discovered that my clients website used to have another domain name, which they still own but don't use. It's doing OK considering its not been used for a few years - almost 6,000 backlinks showing on Majestic. So what's the best way of using this for SEO? I'm presuming some kind of redirecting? A simple redirect of everything on the domain to the new domain index page? Or going trough all the old pages and redirecting them one by one?
Technical SEO | | abisti20 -
One server, two domains - robots.txt allow for one domain but not other?
Hello, I would like to create a single server with two domains pointing to it. Ex: domain1.com -> myserver.com/ domain2.com -> myserver.com/subfolder. The goal is to create two separate sites on one server. I would like the second domain ( /subfolder) to be fully indexed / SEO friendly and have the robots txt file allow search bots to crawl. However, the first domain (server root) I would like to keep non-indexed, and the robots.txt file disallowing any bots / indexing. Does anyone have any suggestions for the best way to tackle this one? Thanks!
Technical SEO | | Dave1000 -
Ranking dropped after domain change
Dear Moz Community, first of all excuse my bad english, i am from europe and my english is not the best 😉
Technical SEO | | domiji
I use Moz Analytics for several days and try to figure out why our "main keyword" totally dropped after our domain change. We started this year with a new company name and a new domain. Our old domain was dp-hochzeitsfotograf.de and the main keyword we try to rank for was "hochzeitsfotograf" which means "wedding photographer" here in Germany. Last summer we reached position 1 and short before our domain change we still ranked on position 6. We register the domain change in google webmaster tools and redirect all urls via 301 redirect to the new domain. Our new domain name is yourheyday.de and all rankings adopted pretty good except our main keyword (now position 62) which could break our neck the next few month. I would be so so happy and really appreciate if anyone of you have an advise for us. Thanks and many greetings from europe
Dominik0 -
I've consolidated other domains to a single one with 301 redirects, yet the new domain authority in MOZ is much less that the redirected ones. Is that right?
I'm trying to increase the domain authority of my main site, so decided to consolidate other sites. One of the other sites has a much higher domain authority, but I don't know why after a 301 redirect, the new site's domain authority hasn't changed on over a month. Does MOZ take account of thes types of things?
Technical SEO | | bytecgroup2 -
Wordpress question
I was curious when i run an OSE report on certain websites and their name.wordpress.com shows up with a PA of whatever and a DA of 100. But when I created my wordpress site and post on it, it only has a PA and DA of 1. is this because SEOmoz has not indexed it yet? It is a month old. http://shiftinsurance.wordpress.com/ Can anyone help pls?
Technical SEO | | greasy0 -
New domain
Hi, I have a domain with no keywords on it, and I´ve been using it for years. Now I bought another domain with the keyword on it. I whant to work on seo for the second domain, with the keyword. What is the better way to work this out? 301? Duplicate de site? redirect in another way?
Technical SEO | | mgfarte0 -
Changing preferred domain
My company has an international website, and because of a technical issue visitors in one of our main countries cannot visits the "www" version of our site. Currently, the www version is our preferred domain - and the non www redirects to that page. To solve this problem, I was thinking of proposing the following and would greatly appreciate any feedback! (Note: If you answered my www vs. non www question, thanks - this is a follow up) 1. Set non www site as the preferred version 2. Redirect from www to non www 3. Contact our current links and ask them to change to without “www” 4. Change canonical URLs to without “www”
Technical SEO | | theLotter0