Enforce URL rules when posting content types
You want to use the PathAuto module.  This lets you create default patterns on a per content type basis that can use information from fields on the node to create a URL.