Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

justinw
14,517 Points.htaccess forcing HTTPS and dropping .html
Curious to know if anyone has recommendations on how to force HTTPS and drop .html at the end of each URL.
Right now, my .htaccess shows: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I've tried it with HTTPS on but no luck.
Thanks
2 Answers

Jacob Mishkin
23,103 Pointsthis blog post looks promising, let me know if you need any more help,

justinw
14,517 PointsThank you!
Jacob Mishkin
23,103 PointsJacob Mishkin
23,103 Pointsthis might help as well:
more info