- Log in to Admin panel
- Navigate to Stores > Configuration > General > Web
- Expand the Search Engine Optimization section
- Set “yes” to Use Web Server Rewrites option.
5. Further, expand the Base URLs (Secure) section
6. Set “yes” to Use Secure URLs on Storefront
7. Save the configuration