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
-
Questions about canonicals
Howdy Moz community, I had a question regarding canonicals. I help a business with their SEO, and they are a service company. They have one physical location, but they serve multiple cities in the state. My question is in regards to canonicals and unique content. I hear that a page with slightly differing content for each page won't matter as much, if most of the content is relevantly the same. This business wants to create service pages for at least 10 other cities they service. The site currently only have pages that are targeting one city location. I was wondering if it was beneficial to use a template to service each city and then put a canonical there to say that it is an identical page to the main city page? Example: our first city was san francisco, we want to create city pages for santa rosa, novato, san jose and etc. If the content for the 2nd, 3rd, 4th, city were the same content as the 1st city, but just had the slight change with the city name would that hurt? Would putting a canonical help this issue, if i alert that it is the same as the 1st page? The reason I want to do this, is because I have been getting concerns from my copywriter that after the 5th city, they can't seem to make the services pages that much different from the first 4 cities, in terms of wording of the content and its structure. I want to know is there a simpler way to target multiple cities for local SEO reasons like geo targeted terms without having to think of a completely new way to write out the same thing for each city service page, as this is very time consuming on my end. Main questions? Will making template service pages, changing the city name to target different geographic locations and putting a canonical tag for the new pages created, and referring back to the main city page going to be effective in terms of me wanting to rank for multiple cities. Will doing this tell google my content is thin or be considered a duplicate? Will this hurt my rankings? Thanks!
Technical SEO | | Ideas-Money-Art0 -
Do bad links to a sub-domain which redirects to our primary domain pass link juice and hurt rankings?
Sometime in the distant past there existed a blog.domain.com for domain.com. This was before we started work for domain.com. During the process of optimizing domain.com we decided to 301 blog.domain.com to www.domain.com. Recently, we discovered that blog.domain.com actually has a lot of bad links pointing towards it. By a lot I mean, 5000+. I am curious to hear people's opinions on the following: 1. Are they passing bad link juice? 2. does Google consider links to a sub-domain being passed through a 301 to be bad links to our primary domain? 3. The best approach to having these links removed?
Technical SEO | | Shredward0 -
Blog.domain.co.uk or domain.co.uk/blog
Hi Guys, I'm just wondering which offers more SEO value and which is easier to set up out of: blog.domain.co.uk domain.co.uk/blog Thanks, Dan
Technical SEO | | Sparkstone0 -
Is it better for our Blog to be blog.domain.tld or domain.tld/blog ?
I'd dread the answer being the latter rather than the former as we've spent two years building it blog.domain... However I noticed SEOmoz are domian.tld/blog and it got me thinking.... Cheers. R.
Technical SEO | | RobertChapman0 -
Domain redirection and seo implications
We have an existing site that is a subdomain but we recently acquired an exact match domain. Will building links to the exact match domain and having the domain point at our existing subdomain work or should we convert the entire site and redirect our existing subdomain to the new domain? What I'm trying to figure out is how to maximize the benefit here and how the existing mass of links pointing to our existing subdomain (shop.domain.com) can be used. New domain: keywordshop.com Existing URL: shop.domain.com
Technical SEO | | CHarkins0 -
Craw Diagnostics Questions
SEO Moz is reporting that I have 50+ pages with a duplicate content issue based on this URL: http://www. f r e d aldous.co.uk/art-shop/art-supplies/art-canvas.html?manufacturer=178 But I have included this tag in the source: rel="canonical" href="http://www.f r e daldous.co.uk/art-shop/art-supplies/art-canvas.html"/> (I have purposefully added white space to the URLs in this message as I'm not sure about the rules for posting links here) I though this "canonical" tag prevented the duplicate content being indexed? is the reporting by SEOMoz wrong or being over cautious?
Technical SEO | | niallfred0 -
Redirecting /default to domain ??
Google analytics shows me that this: http://www.quicklearn.com/default.aspx is my "top content page" This page doesn't redirect to my root domain: http://www.quicklearn.com IT tells me that "/default.aspx" can not redirect to my domain. I am told: "You can only redirect deeper into the site." We have had an ongoing issue with duplicate content (that we are in the process of correcting). Anyone with experience in redirecting that can help? Any advice welcome
Technical SEO | | QuickLearnTraining0