Support » Plugin: Domain Sharding » Additional folders and HTTPs

  • I noticed that only specific folders are applied using this feature and some additional folders are not, I have few questions;

    1. How can I add additional folders to the logic for the domain sharding functionality?
    /wp-content/plugins/
    /wp-includes/js/
    /wp-content/uploads/
    The folders above for some reason are not part of the sharding

    2. When forcing HTTPs, how can I avoid the rewrite rule to rewrite back to www for HTTPs?

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    Basically, I would like to have the following logic;
    Rewrite HTTP to HTTPs
    Keep the same sub-domain (will have multiple sub-domains)

    Thank you!

    https://wordpress.org/plugins/domain-sharding/

Viewing 1 replies (of 1 total)
  • Plugin Author David Garcia

    (@sultanicq)

    Hi,

    About #1 question. Default values does not exclude any folder. Could you please check your plugin configuration. It allows you to exclude some folders. Maybe you have these folders excluded.

    About #2 question. You should add as many RewriteCond directives as subdomains you have.

    For example:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteCond %{HTTP_HOST} !^img-[0-9]\.
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Viewing 1 replies (of 1 total)
  • The topic ‘Additional folders and HTTPs’ is closed to new replies.