i do not know if this is the correct section to post this htaccess question.
when user type example.com on browser, it redirect to https://example.com .
and when user type www.example.com on browser, it redirect to https://example.com .
and when user type https://www.example.com on browser, it redirect to https://example.com .
and when user type http://example.com or http://www.example.com on browser, it redirect to https://example.com .
how to create htaccess for that?

regards,
silent lover

Recommended Answers

All 2 Replies

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.