Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chouby

    (@chouby)

    Hi,

    It’s a pity that you found an unresolved topic and not a resolved one.
    When you migrate a database from one domain to another domain, you must search and replace all occurences of the domain name. There are tools for that.

    For Polylang, there is a workaround, go in Languages > Settings > Urls modifications and resave the options. This resets the language cache.

    Thread Starter ginmi

    (@ginmi)

    Thanks for your quick reply.

    So just to confirm:

    If I follow the workaround within Polylang that you outlined above, I do NOT need to use a search and replace plugin?

    Plugin Support Chrystl

    (@chrystl)

    Hi @ginmi

    Indeed you don’t need to search and replace occurences. Just resave your options Languages > Settings > Urls modifications.

    Plugin Author Chouby

    (@chouby)

    That’s sufficient for Polylang. Maybe not for other plugins which may store the domain name in the database.

    This doesn’t work for me. It’s really driving me crazy…

    I replaced all the URL’s in the database AND saved the options again under Languages > Settings > Urls modifications. But Polylang keeps redirecting to the old URL.

    If I deactivate the plugin the problem is solved, but the multilanguage option is gone off course.

    Where does Polylang save the URL?

    Hey ya. I came here because I had the same issue. Polylang stores the former URL in some cache (I have not found it yet). But when you add this to wp-config.php:

    define('PLL_CACHE_HOME_URL', false);

    It will solve the problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Polylang redirect to former site url adress’ is closed to new replies.