How to change the default location where new post gets stored?
I would look in permalink settings in your wp-admin dashboard. That’s where you can alter url structures of your WordPress site including how post urls are determined. I think that’s all you would need depending on your theme.