• Resolved vfdornelas

    (@vfdornelas)


    Hello,

    First, thanks for the plugin!

    I’ve been using it for a long time and I have the plugin installed on at least 9 websites that I manage.

    Today, I installed a new website, when I activated your plugin, I was automatically redirected to my other website installed on the same server.

    I have installed and reinstalled wordpress and database several times, but whenever I activate your plugin, I can no longer access the site, I am automatically redirected to my other website.

    I cleared the cache using redis-cli flushall and I managed to solve the problem, but now when I access the other website, or automatically redirected to the new website.

    For example: Before, when I tried to access xxx.com, I was automatically redirected to yyy.com. Now i can access xxx.com but when i try to access yyy.com its automatically redirected to xxx.com.

    I have other websites installed on the same server, all using your plugin, but only these two domains with this problem…

    I’ve already reviewed all the configuration, I can’t understand why this redirect happens only after activating your plugin.

    If you have any suggestions, I would be grateful.

    • This topic was modified 2 years ago by vfdornelas.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Today, I installed a new website, when I activated your plugin, I was automatically redirected to my other website installed on the same server.

    That 100% means both sites use the same Redis database. Be sure to set WP_REDIS_DATABASE to a unique index for each site and then run FLUSHALL.

    mrphunin

    (@mrphunin)

    Me to having same problem I’m lost with no solution,
    If you please guide that would be very helpful.
    How to
    set WP_REDIS_DATABASE to a unique index for each site and then run FLUSHALL.

    Using openlitespeed cyberpanel.

    Thanks ??

    • This reply was modified 2 years ago by mrphunin.

    I have had the same issue. This basically makes this plugin unusable for mere mortals with multiple sites on the same server, EVEN IF THEY EXIST IN DIFFERENT CPANELS. Spent about 3 hours on this today with a client’s site redirecting to a different client’s site.

    Plugin Author Till Krüss

    (@tillkruess)

    Defining WP_REDIS_DATABASE and running redis-cli FLUSHALL will resolve any redirects.

    Hi

    Could you explain how to do that please? Where do I define the database and how do I run the command?

    So I worked out that the database was defined in wp-config (it says it creates number 0 – 15 as standard, but can you add any number as I have many websites?) and that you run the FLUSHALL from the command prompt. I did both of these things, but still the website is redirecting to the other website on my same server. What else can I do to clear this up?

    Thread Starter vfdornelas

    (@vfdornelas)

    @dashdesigns, for me it only worked after reboot the server.

    I’m having the same problem here…

    And the worst thing was activating on one site, and on another, all the plugins were deactivated…it does something scary.

    I still don’t understand how to change it.

    Can I simply put any different number in the database, so as not to generate conflict?

    I added this command line to a website in wpconfig.php and it started working again:

    define( ‘WP_REDIS_DATABASE’, 15 );

    I rebooted and changed the number of the database in both of the website’s config files and flushed all and rebooted again, and disabled all plugins in the one I can no longer reach, but still it redirects. This is crazy. Please help!

    I eventually disabled all plugins in both websites, deleted the redis plugin, removed the database entries from both config files, flushed the cache and now I can log in again. Lesson learnt I think. Don’t use this plugin on multiple sites on your VPS.

    Plugin Author Till Krüss

    (@tillkruess)

    It’s perfectly fine to use with multiple sites. If deleting the drop-in helped then you’re defining your config constants too late.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Redirecting to another domain after activation’ is closed to new replies.