• Hi

    I’ve found a few issues I’d like some help with please.

    I’ve selected posts and post_meta tables, I’ve also tested on all tables.

    Here are the URLS that will not fix:

    1. my/-calculator/ -> my-calculator/ (there’s a funny / before -)
    2. /test_url// -> will not replace with /test_url/ and remove the final /

    Any idea why these won’t work?

    I’ve tried with multiple variations and it won’t fix no matter how much I try.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @lab41 ,

    Better Search Replace Support Team here. Thanks for reaching out with your query! We would be happy to assist.

    Have just tested this, and was able to search and replace the slash and double slashes in the given strings –
    https://share.getcloudapp.com/YEu47xe9

    Could you kindly check your database and see how these strings are saved, they might be saved differently depending on the encoding.

    For example, in the ‘my/-calculator/’ string, the dash (-) might be saved as ASCII code 150 in the database, but is shown as ASCII code 45 in the front-end.

    Thank you.

    Thread Starter Lab41

    (@lab41)

    @dbisupport – thanks.

    What’s really weird is that I tested it on a few variations and it worked on those, but on some it refuses to work.

    /test_url// -> will not replace with /test_url/

    but

    /test1_url// -> will replace with /test1_url/

    /test2_url// -> will replace with /test2_url/

    I’m going to ask my hosting about this as well. They’re very experienced and we’ve already tried to debug it from a server side, but got stuck.

    If it is ascii codes, what’s weird is why some instances would use one code, while another instance would use a different code! (especially in the permalink!)

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @lab41 ,

    That is indeed weird. May we know if another plugin is saving that data? Perhaps they are saved differently in the database, and therefore Better Search Replace (BSR) can’t catch it.

    For example, some plugins save slashes like \/test_url\//. More recently I came across a URL that was encoded like %2ftest_url%2f%2f.

    I would recommend checking the database directly to see how the data is actually saved. If another plugin saved the data, I would recommend contacting them as well; maybe they save data in a different table.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some URLS Will NOT Replace’ is closed to new replies.