How to create multiple Rewrite-Rule for various site in single htaccess?

Question

I am using a single database for two different sites. One is sitejury.com and the other is cdn1.sitejury.com. I’m trying to serve my files using the subdomain.

Previously I used simple https Rewrite for my domain. but now with my increasing need, it has become complex for me to set up.

  1. I need to redirect both www.domain.com or domain.com to https://domain.com

  2. Redirect all version of cdn.domain.com to SSL-https//:domain.com version except (option- 3)

  3. Subfolder “wp-content” and “wp-includes” stay on both the domain domain.com and CDN domain with https. I only need these two files to redirect to their https version.

0
, , Bikram 4 years 2020-03-25T00:53:48-05:00 0 Answers 119 views 0

Leave an answer

Browse
Browse