How to make a collider trigging and go though

How do I make a collider go through another collider but also use it to trigger that the collider passed though it?

Edit: My bad. My problem is rigid body ignoring the collider but still triggering it.