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

  • Hi,

    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 ^ https://www.appsflyer.dev%{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
    http://example.com/test/ => https://www.example.com/test1 (1. http non-www to https www 2. different post without trailing slash)

    Thank you in advance.
    With Regards,

  • You must be logged in to reply to this topic.