Support » Networking WordPress » Redirects in multisite(non-www to www) without trailing slash

  • bhujelshashi



    I am new to wordpress multisite. I have to fix redirects in an existing multi-site website. I have to redirect http(non www or www) to https://www , without trailing slash. I have added the redirects as follows and I have two problems:

    1. I added this redirect but the application doesnot seem to use this .htaccess redirects. Its using yoast seo as well so I am not sure what is happening.
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteRule ^{REQUEST_URI} [L,NE,R=301]

    2. Some post are redirected to a different post. And I want to redirect it in one single redirect.
    example => (1. http non-www to https www 2. different post without trailing slash)

    Thank you in advance.
    With Regards,

  • The topic ‘Redirects in multisite(non-www to www) without trailing slash’ is closed to new replies.