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
-
Is there a way to find out who is trying to damage my site
Hi, to cut the story short, i hired a seo guy to do work on my site, paid a lot of money, but then when he was let go all the links to the site were stripped and other work had vanished. I want to know if there is a way to prove this and to also check on any other damage that he could be doing at the moment to my site. The site was running high in the search engines and then dropped a short while after he was let go.
On-Page Optimization | | in2townpublicrelations0 -
SEO Onpage (where I need to put the H1/2/3)?
Hi everybody, I'm working on my new website, and I have a few questions about the Headers (<h 1="" 2="" 3="">)
On-Page Optimization | | JohnPalmer
please see the attached image, I create a mock-up for you, please tell me which H I have to put on the title.
(** most of the articles will be without sub-titles so...it will be dynamic, but try to take a look on the "sidebar" and "menu link".</h> 6ER0EpK0 -
To change or not to change site URL structure?
I am learning my way around SEO, having always used professionals for it in the past on previous businesses i have decided to do it myself and learn more about it. Now the dilemma i am up against is i recently changed some of my permalinks on quite a few main pages throughout the site. The site launched in April this year so we're quite new. The problem is since my last change i have not seen any increase...a decrease which in fact hasn't recovered at all. Having now analysed them in more depth and read up more on the whole subject of SEO, (which is endless) i have put together a complete new strategy; with this increased understanding of what i am doing (but by no means conclusive) i want to complete a full overhaul on all SEO (via Wordpress which i use along with YOAST SEO tools), ensuring i have all my keywords, permalinks and descriptions spot on throughout every page, post and picture. I spent a lot of time mapping these out, ensuring there is no Focus keyword duplication, and that the site is relatively flat in terms of its layout. What i am unsure about now is whether changing my permalinks again is a bad thing to do?
On-Page Optimization | | MrCostello
Could it permanently damage my rep going forward?
Should i just focus on my content and keywords/descriptions? I am at a loss as i don't want to do irreparable damage to our reputation. The site is still reasonable easy to manage so changing now is the best time to do it, but if changing the URLs is a waste of time then i may just forget that and just work on the keywords, descriptions and content. Advice is 'oh so welcome' 🙂0 -
On site SEO review please
I'd appreciate it its anyone could take the time to review my on site SEO and suggest improvements. it's an adult dating site at http://www.local-sex-search. All pages can be found at http://www.local-sex-search.com/sitemap
On-Page Optimization | | SamCUK0 -
Schema for Web/SEO Service Pages
I was thinking about setting up my services pages for SEO and Web design with Schema code for a product. Is this a good idea? Has anyone done it?
On-Page Optimization | | NeilBelliveau0 -
SEO for New Magento Site??!?
Hi All, We have had a new site delivered by our developers (hurrah...the old one was to terrible for words) but we seem to be having a lot of issues with the new Magento platform. What they have done is used the community version and tried to customize it. I came on to this project about a month into the build and although Magento does seem to do a lot things well there do seem to be some problems. From an SEO prespective we have seen some increase on some search terms and a drop of in others. I would be interested in hearing from other Magento users about their experiences with this platform and any ideas on how to crank up the activity. Our site is at www.nationwidepharmacies.co.uk . There are few odd bits including the side navigation which seems to be very clunky and not overly customizable in this version. Any useful criticism would also be well received. Look forward to hearing Nic
On-Page Optimization | | nicc19760 -
Best Way to Add Google Map to Site
My site is built with WordPress. I want to add our business location in the contact page using Google Map. What is the best way to do this? There is many plugins out there for Word Press do I need to use one ? Hopw about Webmaster tools, does it need to be submit somewhere in there? When it is done properly, will Google show our store location with a map in Goolgle search results? I saw some store result showing the map & business hours, How to do this? Thank you for your help. BigBlaze
On-Page Optimization | | BigBlaze2050 -
ON SITE SEARCH INDEXED BY GOOGLE - no follow or no index
Google indexes alll our internetal searches: search box is brand - clothes types - size type - and for each page it creates a page that which creates duplicate page title and unnecessary content. Should I do a nofollow on the advance search or a no index. Many thanks for the info. Sonja
On-Page Optimization | | reallyitsme0