While Cedar is very durable, there are things you can do to prevent decay when the ground is involved.
For above ground we recommend Simpson Strong Tie, post bases. Learn more here: https://www.strongtie.com/products which can be found on Amazon.
For below ground, we recommend the sleeves in Post Protector system found here https://www.postprotector.com/



