Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

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,118 Pointsthis blog post looks promising, let me know if you need any more help,

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