Philosophy is the rational investigation of truth.
Religion makes the same kind of truth claims based on faith rather than rationality or reason.
The key difference is that they are different epistemological positions — philosophy has a system of logical principles in place to arrive at conclusions whereas many religions (such as Christianity) allow for other sources of knowledge (i.e. faith).