How do you treat http/https and slashes at the end of a site?
-
- I believe there is a difference between http://www.abc.com vs https://www.abc.com
I also know that it shows security and whatnot, but how do you treat it? Do you submit both? Do you re-direct one to the other? What if you have had the non-secure site for years and the links are mostly crawled?
- My second question is similar as my report shows these two as different: http://www.abc.com/blog vs http://www.abc.com/blog/
I didn't think it made a difference, but when I submitted the links to Google it would not accept them without the slash at the end. Again, the same questions as above in regards to how to treat it. Do you submit both? Do you re-direct one to the other? What if you have had the non-slash site for years and the links are mostly crawled?
-What about http://www.abc.com vs http://abc.com ? They go to the same page, but are they treated the same?
-
Hi Tiffany,
There is a difference between all of these URLs, as far as Google is concerned. If a URL has any one characters different to another, Google considers it to be different. This is true even if the pages each URL loads are exactly the same.
For all of these URLs, you should choose one that you consider to be the "proper" URL. Call this the "canonical" URL - the correct version. There is no gold standard for which versions you should choose, besides for one, which I'll get into later: https://www.abc.com/ is realistically not better or worse than http://abc.com/.
However, you might have a good reason why the entire site should be on HTTPS URLs, i.e. on secured as opposed to unsecured URLs.
Some people choose to not use the "version" of their site that loads with "www" - again, there is no benefit or detriment either way.
For the abc.com/blog/ example, the general rule is that **if more content site beneath the /blog/ subfolder, the URL should have a trailing slash. **If "/blog is just a page with nothing housed beneath it (i.e. there are no pages like www.abc.com/blog/2014/post.html), then you can leave the trailing slash off if you like.
No matter which versions you choose, all alternative versions should be 301 redirected to the canonical version (the one you chose as your preference). If you choose http://www.abc.com/ and someone types in https://abc.com/, they should be 301 redirected to http://www.abc.com/.
The other option is to place the canonical tag on each "alternative" version, pointing to the canonical URL of that page. This means that https://abc.com/, etc. load, but the canonical tag tells Google that the primary version is not on this URL, but on the one you specify in the tag. This is quite easy to do: each URL will be pulling its content from the same file (that is, there are not usually two files for the home page, one populating www.abc.com and one populating http://abc.com - it is the same file being displayed on different URLs). As such, that one file needs to have the canonical tag indicating your desired canonical URL. Each page requires its own canonical tag, indicating the desired URL.
301 redirection to the canonical URLs is the traditional way of getting this done.
Cheers,
Jane
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
-
On-Page Optimization on a service based Site?
Respected members, my question is that if I Wanna run a website that provide service like olansi do, But i need to know the On -page effect like How Can I make a plan to secure my position against my Service based competitor site?
On-Page Optimization | | younus_7831 -
Site appears to rank very low
Hi, A site we manage is ranking very low for it's main key phrases. The site is www.moremouse.com. For example for the phrase "orlando vacation rentals" it ranks around page 12 which seems very low considering the DA, PA, links, etc. compared to many sites ranking much much higher. Can anyone see anything obvious that is causing it to rank so low? Thanks Pete
On-Page Optimization | | QbicIS0 -
Duplicate product content/disclaimers for non-e-commerce sites
This is more a follow-up to Rand's recent Whiteboard "Handling User-Generated & Manufacturer-Required Duplicate Content Across Large Numbers of URLs." I posed my question in the comments, but unsure it will get picked up. My situation isn't exactly the same, but it's similar: Our site isn't an e-commerce site and doesn't have user reviews yet, but we do have maybe 8 pages across 2 product categories featuring very similar product features with duplicate verbiage. However, we don't want to re-write it because we want to make it easy for users to compare apples-to-apples to easily see which features are actually different. We also have to run disclaimers at the bottom of each page.\ Would i-framing the product descriptions and disclaimers be beneficial in this scenario, with the addition of good content? It would still be nice to have some crawlable content on those pages, so the i-framing makes me nervous unless we compensate with at least some above-the-fold, useful content that could be indexed. Thanks, Sarah
On-Page Optimization | | sbs2190 -
"Turning off" content to a site
One site I manage has a lot of low quality content. We are in the process of improving the overall site content but we have "turned off" a large portion of our content by setting 2/3 of the posts to draft. Has anyone done this before or had experience with doing something similar? This quote from Bruce Clay comes to mind: “Where a lot of people don’t understand content factoring to this is having 100 great pages and 100 terrible pages—they average, when the quality being viewed is your website,” he explained. “So, it isn’t enough to have 100 great pages if you still have 100 terrible ones, and if you add another 100 great pages, you still have the 100 terrible ones dragging down your average. In some cases we have found that it’s much better, to improve your ranking, to actually remove or rewrite the terrible ones than add more good ones.” What are your thoughts? Thanks
On-Page Optimization | | ThridHour0 -
Site Duplicated despte redirect
Buon pormeriggio from I can smell Whaler Chips Through the window Wetherby,
On-Page Optimization | | Nightwing
When you Google Thakray Medical Museum 2 sites appear in the SERPS, yikes! Now the .org site is no longer hosted & point to the .co.uk site when clicked on but in a nutshell I wantto get rid of the .org site
as illustrated here: http://s216.photobucket.com/user/zymurgy_bucket/media/two-versions-same-website-yikes_zps182e6e12.jpg.html Actions taken so far:
1: Wembaster tools re index request for the .co.uk site
2: Redirect configured to point .org site to the .co.uk What else is left apart from updating the xml site but ultimating i do not want to see the the .org site but it doesnt exist (well id did a few month back but is no longer hosted so i am told) Any insights welcome,
GRazie tanto,
David0 -
Duplicate Content from on Competitor's site?
I've recently discovered large blocks of content on a competitors site that has been copy and pasted from a client's site. From what I know, this will only hurt the competitor and not my client since my guy was the original. Is this true? Is there any risk to my client? Should we take action? Dino
On-Page Optimization | | Dino640 -
What is this site all about?
Can anyone here tell me what this site is all about?... I really need to know, i have a blog.
On-Page Optimization | | Wales33030 -
Site structure for services and blog articles
Hi, looking for some advice on the structure for a relatively small site (around 200 pages). I'd like a structure where we can talk about our services as well as write blog articles on topics that relate to our services. We'll have loads more content in the blog area than in the services area. I was thinking of this: option 1: /services /services/copywriting
On-Page Optimization | | JaspalX
/services/social-media
/services/press-releases etc. and categories for articles where we'd give tips, talk about trends etc. /copywriting
/social-media
/effective-press-releases
etc. would it be better to have a different structure, say: option 2: /copywriting
/copywriting/services
/copywriting/articles OR option 3: /copywriting-services
/copywriting-blog OR option 4: /services/copywriting
/blog/copywriting OR is there another, better way perhaps? Of course the internal anchor text links to the services/blog articles pages will be tuned to try and make it clear what each section is about i.e. our services vs. industry trends/comments/tips for the blog.0