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
-
Company name in Site Meta description?
Ok. So I know that you should have your company name in the site title, but is it all that important in the site description? The reason I ask is because I am competing with another company for the #1 position (I was number 1, now #2) that has an 8 character name and mine is 22 taking away from a great deal of real estate in my 150-160 character site description in which I could provide additional information describing my company. Should I remove my name in the site description enabling me to use more descriptive keywords and actionable text such as (Find, research, contact, professional, info) etc. Thanks,
On-Page Optimization | | photoseo10 -
Url structure with dash or slash
Hi There We have a content website. We don't rank well category image related searches but we get quite good traffic for those keywords. Those keywords are mostly like "category images". We want to change our url structure and we have 2 options now. 1- domain.com/category/category-images 2-domain.com/category/images option 1 repeats the category name so it looks spammy option 2 doesn't really have the keyword. any ideas which one tho choose? Thanks! ps: we don't want to use domain.com/category-images (too many root link)
On-Page Optimization | | muminaydin0 -
Site Downtime - Will pages be reindexed?
I recently had site downtime of about 10 days for a site I'm working on which is about 6 months old. There were naturally many page not found errors in webmaster tools as google had tried to crawl the site during the downtime but I've noticed that google has now dropped some of the pages. Are they likely to be reindexed? Google has crawled some of my pages today but as yet the ones that have been dropped from the index haven't reappeared. (the site has been live again for a week). Should they reappear when the pages are next crawled?
On-Page Optimization | | SamCUK0 -
Duplicate Content - Site Wide or Internet Wide?
Hello... I am creating a new website and i was wondering how you guys would define duplicate content? If my new site had the same page titles and descriptions as my existing site, would that be duplicate content? Or does duplicate content mean same titles and descriptions in the same site? I'm wondering if i can upload the same database (with page titles and descriptions and alt tags) to my new site or if that would be looked at as duplicate... Thanks
On-Page Optimization | | Prime850 -
Remove internal site SERPS from Google Index?
1. Internal Serp pages did not have a robots meta tag 2. As a result, client site has thousands (~4,400) of internal site SERP pages in the Google index. 3. We added the NoIndex, Follow attribute to all internal SERPS 4. We Disallowed: domain.com/internal-search-operator in Robots.txt 5. No new SERP pages are being indexed, but the other 4000 something that were already there are still in the index weeks later. 6. The pages are dynamically created and still work, so I can't use the Remove Content tool from google, because the pages don't 404. Is there any way to get these pages out of the index besides just waiting and hoping google eventuall drops them? Thanks
On-Page Optimization | | delegator.com0 -
Site Redesign: Potential Problems?
We're looking at a cleanup of our site and making our navigation menu simpler and more visual. The problem is there's a massive fear that we will incur some sort of SEO hit at a time when we can ill afford one. The bulk of the changes are around some tertiary pages that have some SEO value but are not primary targets or traffic sources. The pages with content aren't moving URLs or changing, nor is the core content of the site, just the template. The new template, I feel, is easier to navigate and easier to spider (menus are flyout divs with images). So are there any tips or tricks to changing the layout of your site without hurting SEO? Anything we need to avoid?
On-Page Optimization | | Highland0 -
Seasonal site structure
Bit of a complicated one for anyone who likes a challenge.. We sell a range of products which are very seasonal, so therefore have a seasonal section within the store with the products categorized into their relevant categories. In additon to this i wanted to also create a feature of each season so in effect pull forward on to a new tab the relevant season ie: Valentine so that customers didn't have to hunt for the products by going via seasonal shop etc The problem is that my site urls display last-category/product-title so in effect as the seasons change these urls will be deleted. They do remain elsewhere in our catalogue.. Does this make sense?
On-Page Optimization | | LadyApollo0 -
Site Stucture Advice - Keyword Dillema
I am creating a new site and am looking for some advice on how to structure the site Using Google's keyword search tool it seems like I have a dilemma in that about 50% of the keyword pairs are contained in 10 keyword pairs that are similar The first two pairs have about 49% of the traffic and only differ between plural / singular, not quite sure how to handle that, or if google has a method to make these more or less synonomous The last 8 pairs are roughly similar in distribtuion As an example (not my case, just for visualization) Mountain Bike Classes Mountain Bike Instruction Mountain Bike Workshops Mountain Bike Training Etc ... which all more or less give the same results (yes some difference but they all deal with learning how to ride a mountain bike, again this is not my exact case, don't care a whit about mountain bikes 😉 I don't see giving each of those kinds of pairs their own page since the content would be pretty much the exact same, making it substantially different would also be problematic (if I am thinking about this correctly) I have a clean slate to work with from a site perspective so I am wondering how people here would, or better yet have handled similar situations
On-Page Optimization | | bThere0