WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)

If you are using any CDN service like Cloudflare, then you can use the forwarding URL feature

I mean you can set this rule:

*example.com/*

https://www.example.com/$2

this way, the HTTPS and www will be added to all URLs, this can be handled via web server too, but using a CDN service, will reduce the load of your webserver

Leave a Comment