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
-
We switched the domain from www.blog.domain.com to domain.com/blog.
We switched the domain from www.blog.domain.com to domain.com/blog. This was done with the purpose of gaining backlinks to our main website as well along with to our blog. This set us very low in organic traffic and not to mention, lost the backlinks. For anything, they are being redirected to 301 code. Kindly suggest changes to bring back all the traffic.
Technical SEO | | arun.negi0 -
.htaccess Question
Hi,I have a website www.contractor-accounts.co.uk that has an .htaccess file that strips .php and forces a closing brace /. The site is now over 6 months old and still has a very low ranking with MOZ also rating the site as DA/PA = 1 which seems to indicate some sort of issue with the website. Can anyone offer any suggestions as to why this site is ranking poorly as much of the onpage SEO has been completed to a level of 90%+ for specific keyterms so I'm probably either looking at routing of the framework of so other technical SEO issues possibly? Any help much apreciated... <ifmodule mod_rewrite.c=""><ifmodule mod_negotiation.c="">Options -MultiViews</ifmodule> RewriteEngine On # Redirect Trailing Slashes...
Technical SEO | | ecrmeuro
# RewriteRule ^(.)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_URI} /+[^.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
# Redirect non-WWW to WWW...
RewriteCond %{HTTP_HOST} ^contractor-accounts.co.uk [NC]
RewriteRule ^(.)$ http://www.contractor-accounts.co.uk/$1 [L,R=301] # Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]</ifmodule>0 -
Domain Change -- Drop in Rank
So I had a client that recently decided to change their URL to make it more "searchable"/shorter. Since doing so, I have noticed a significant drop in rankings for a number of the keyword terms we were previously ranking for. Is there a way to push the links to the new URL or is the only solution to revert back to the old URL?
Technical SEO | | maxcarnage0 -
Parked Domains
I have a client who has a somewhat odd situation for their domains. They've been really inconsistent with how they've used them over the years, which makes for a slightly sticky situation. The client has two domains: compname.com and fullcompanyname.com. Right now, their website is just HTML (no CMS) and all of the URLs are relative, so both domains work. Since the new website will be in WordPress, they need to commit to one domain as the primary. Right now, it looks like compname.com is the one they've used the most in ads and such, so I'm going to recommend they go with that. However, the client has also used fullcompanyname.com a lot. They don't want to have to setup individual 301 redirects for everything. I think it's ridiculous, but you can lead a horse to water... Our developer has done some research and he may have found a solution that will satisfy the client. I just want to find out if there are any SEO implications. The possible plan is to us compname.com as the primary domain and to park fullcompanyname.com. That way, if someone visits fullcompanyname.com/products/my-favorite-product, it will still work without having to setup 301 redirects. Since the domain is parked, Google won't recognize it as duplicate content, correct? Just to be clear on the whole situation, I'm insisting that all of the website URLs need 301 redirects, regardless of the domain. The primary concern is with a lot of other stuff on the server that isn't related to the site (email campaign landing pages, image files, assets that are pulled in by the client's software, etc.). The client's concern is about redirecting all that other stuff (and there is a lot of it--thousands of files). The parked domain would seem to fix that, but I want to make sure that the client won't get Google slapped.
Technical SEO | | BopDesign0 -
Sitemap question
Hello, In your opinion what is better for a root domain and micro-sites using sub-domains?, to have a single sitemap for the root domain including all links to the sub-domains or to have a separate sitemap for each sub-domain? Thanks Arnold
Technical SEO | | arnoldwender0 -
What is the best method to block a sub-domain, e.g. staging.domain.com/ from getting indexed?
Now that Google considers subdomains as part of the TLD I'm a little leery of testing robots.txt with something like: staging.domain.com
Technical SEO | | fthead9
User-agent: *
Disallow: / in fear it might get the www.domain.com blocked as well. Has anyone had any success using robots.txt to block sub-domains? I know I could add a meta robots tag to the staging.domain.com pages but that would require a lot more work.0 -
Site Structure question
when deciding the Site structure for a e-commerce site Is it better to keep everything mysite.com/widget.html or use categories like mysite.com/Gifts/widget.html
Technical SEO | | DavidKonigsberg0