All page redirects to the slash (“/”) at the end do not work

This topic has 1 reply, 1 voice, and was last updated 16 hours, 32 minutes ago ago by Goostaf

  • Avatar: Goostaf
    Goostaf
    Participant
    December 27, 2024 at 15:04

    Hello, maybe you know how to properly make redirect pages on vps ngix, that at the end was a slash, now we have pages open all (except products) and https://meshar.ru/product-category/nabory-dlja-zhenshhin (without a slash) and with it https://meshar.ru/product-category/nabory-dlja-zhenshhin/, no redirect, I can not understand..I realize that not quite your support, but little do you know how.

    I put this one, it works, but it breaks Cf7 forms (wp-json/contact-form-7/v1/contact-forms/3598/feedback/:1
    Failed to load resource: the server responded with a status of 404 ())
    Code:

    if (!-f $request_filename) {
    rewrite ^(.*[^/])$ $1/ permanent;
    }

    I’m sending our full code now in private

    Content is visible for topic creator and
    support staff only.
  • Viewing 1 results - 1 through 1 (of 1 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.