Generally, E-commerce is not illegal in India unless & until you are selling something illegal on your e-commerce.