Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Ian Mackenzie
11,062 PointsE-Commerce Best Practices
- Should the blog be separate to the commerce site? (/blogname)
- Should the shopping cart be on a subdomain?
- What other best practices should be implemented?
4 Answers

Ricky Catron
13,023 PointsThis feels like it would be very client specific.
I would put the blog on the same site as the commerce if the commerce was smaller, Local Store or such, and on a separate site of it was large, Walmart.
I would keep the shopping cart on the same domain if possible. Some users tend to freak out if they notice they are on a "different site".
Get a SSL certificate(HTTPS). This is mandatory for customer safety and happiness.
Process as little of the e-commerce as possible unless you are 100% sure you know what your doing. Let a pre-built solution handle the heavy lifting.
Protect your customers above all else. They will tolerate a "ehh" design but if you get their credit card stolen.....
Above all be careful, avoid risk, and have fun with it!
I have built one eCommerce website before and I learned a lot!
Goodluck! --Ricky

Chris Coddington
1,559 PointsNo, for SEO reasons the blog should be a subdirectory of the domain (e.g. https://mydomain.com/blog)
No, for SEO reasons the cart should stay on the domain.
There are quite a few best practices to be followed, but they fall into one of three areas and there is a little voodoo/science to each of them: a. Technical Performance (e.g. increasing page load times) b. Sales Performance (e.g. improving sales conversion) c. SEO (e.g. improving page rank).

Ian Mackenzie
11,062 PointsThanks Chris,
Categorising these into major topics is very helpful.

Dustin Matlock
33,856 PointsA blog on a subdomain is a more neutral approach for a larger business. It adds some extra authority to the domain, but not as much as on the root of the domain. Here's a decent article on that.

Ian Mackenzie
11,062 PointsThanks Dustin, I'll read that article.
Ian Mackenzie
11,062 PointsIan Mackenzie
11,062 PointsThanks Ricky, good points.