Skip to main content
3 of 10
added 7 characters in body
DD.
  • 549
  • 1
  • 6
  • 18

Apache Rewrite Rule non-www to www + http to https + remove trailing slash

I would like to accomplish the following:

  • rewrite non-www to www
  • redirect from http to https
  • remove trailing slash

e.g. http://medexpress.co.uk should redirect to https://www.medexpress.co.uk

How would you structure a set of rules to do all of the above?

DD.
  • 549
  • 1
  • 6
  • 18