Optimization of an ecommerce website for search engines requires various measures such as conducting and using relevant keywords in titles, descriptions, and URLs; creating unique and engaging product descriptions, adding metatags, alt tags, schema markup, and sitemaps to websites; improving website speed and performance, ensuring mobile-friendliness and responsiveness; using internal and external links to improve site structure and more.