SSL Certificate and WordPress

There is no need to hardcode anything and/or alter database entries. I’d highly recommend you’d check out the following plugin: WordPress HTTPS – it’s quite versatile and will handle everything for you.