• Resolved joshpaynedesigns

    (@joshpaynedesigns)


    So the new Ignore trailing slashes setting seems like a great idea but I think it’s backwards to work on WP. I might be reading it wrong but doesn’t (/exciting-post/ will match /exciting-post) mean that if you type the trailing slash it will redirect to the none training slash? This doesn’t seem right since WP pages are really directories so they will always have the trailing slash no? I turned this on and my links broke. Because if you don’t type the training slash in a WP url WP will redirect you to the url with the trailing slash. Am I missing how this works? Does this work in the other order too (i.e. /exciting-post will match /exciting-post/)?

    I liked the idea because I thought it would fix the issue of having to create a redirect for the / and the none /.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Godley

    (@johnny5)

    Ignore trailing slashes means just that – it ignores them. It doesn’t mean it redirects them.

    Also, people use Redirection to redirect things other than WordPress pages.

    Thread Starter joshpaynedesigns

    (@joshpaynedesigns)

    John,

    I hear ya. But does that mean that if I have a redirect for /test/ to /blog/ that /test will also redirect to /blog/ if I have the setting turned on? So that I don’t have to make 2 redirects for both /test and /test/?

    Plugin Author John Godley

    (@johnny5)

    Yes, that is exactly what it means. It won’t affect anything else other than the redirect where you have it enabled.

    Hello,
    can you please let me know how to properly use the new “Ignore Slash” feature?

    (I really like it because with it I don’t have to manually write the “old” regex code)

    My question is:

    Does it change anything (does it work in both cases?) if the Source URL is like one of the followings?

    mywebsite.com/page
    or
    mywebsite.com/page/

    I mean:

    Do I have to specifically include (or exclude) the trailing slash in the Source URL or I can have both the situations and the result is the same (they both redirect to the Target URL)?

    Thank you in advance, Matteo

    Plugin Author John Godley

    (@johnny5)

    It doesn’t matter which source URL you have, the trailing slash will be ignored when matching.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ignore trailing slashes issue’ is closed to new replies.