Can i use the same content in two websites? one is the main website and one is directory website

First of all, this is not a WordPress related website. And this site requires questions specifically about it.

To answer your question, YES. you can use the same content as long as it is on the same domain.