• jonneve

    (@jonneve)


    Hello,

    I’m using qTranslateX and have it configured to use one domain per language. It works beautifully, except for one thing: I can only log in using the default domain, and that causes my stats to be completely screwed up.

    The default domain is the original domain that I had things installed on (jntraductions.fr). I recently bought two new domains (creative-translations.fr and traduction-creative.fr), one for English and one for French, and I had them point to the same WP install. I then configured qTranslateX to use pre-domain mode, and it works nicely.

    The problem I have is that I can’t log in to the admin panel using either of the new domains, and if I login using jntraductions.fr and then display the site, the admin bar does not show up at the top and I can’t directly edit an article. More importantly, that means that my stats get screwed up because it counts my own page views, and counts the new domains as referers, which clutters up the stats and hides useful information.

    Is there any way to fix this?

    Thanks in advance,
    Jonathan

    https://wordpress.org/plugins/qtranslate-x/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Clause

    (@johnclause)

    What do you have in “WordPress Address (URL)” and “Site Address (URL)” on page “/wp-admin/options-general.php”? I guess, “jntraductions.fr”? You may try putting traduction-creative.fr? Does that help?

    This mode is experimental and untested. Your report is basically the first kind of success I heard about. Are you developer who can read PHP? If so, I would appreciate if you figure out the best way and let us know if anything needs to be changed.

    Thread Starter jonneve

    (@jonneve)

    Hi John,

    Yes, the site address is jntraductions.fr. I tried changing it over to one of the other domains a while back, but I then couldn’t log in at all and had to set it back in wp-config.php.

    I didn’t realize it was experimental, but it’s working remarkably well apart from this relatively minor issue. I am a developer too, so I can probably get it figured out when I have a bit of time to do some experimentation, or at least, I’ll be able to give you more feedback about the problem.

    Thanks for your help.

    Jonathan

    Plugin Author John Clause

    (@johnclause)

    Hi Jonathan, I guess, login issue is where it needs an improvement. I think, in theory you should be able to login with any of urls: creative-translations.fr/wp-login.php and traduction-creative.fr/wp-login.php, but WP tests many things against the value of “WordPress Address (URL)” (option ‘siteurl’) and I guess this is where it gets messed up. I am afraid that it will not be possible to make admin side to work on all domains, but it should be possible to make it work under the default one, for example, and redirect all other admin pages to the same page under the default domain. I am not sure what that will do the site stats though.

    Do you have an account on GitHub? It may be easier to open and track the issue at GitHub, than here.

    Thanks a lot, John

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Difficulty logging into admin page with multiple domains’ is closed to new replies.