I activated SSL on one of my sites (based on wordpress) and want to modify .htaccess
to modify content's links to https.
I mean, into https://www.example.com/products.html
page is a http://example.com/blah-blah.jpg
i want to change it to https://www.example.com/blah-blah.jpg
via .htaccess
and i don't have any idea! :|
I installed and activated HTTPS for WordPress
plugin but some links not change to https.
相关问题
- Display product ACF field value in Woocommerce tra
- Backbone.js PushState routes .htaccess only workin
- Stop .htaccess redirect with query string
- Mechanize getting “Errno::ECONNRESET: Connection r
- Adding a custom button after add to cart button in
Try putting this in
.htaccess
:Of course this will require that you have mod_rewrite enabled.
Mr. Schulman's solution forgets the slash after the domain name, so the user is redirected to https://www.example.comcategory/cat1/cat2/ which is not quite right. I added a slash to his .htaccess entry, and it worked just fine. Consider: