• Resolved Harvey

    (@harvey)


    Hi guys, I’m getting some strange weirdness here with two installations.

    At first I thought it was my browser cache giving me trouble… But it seems that’s not the case.

    I have one WP installtion in a directory called /jp/
    and another installation in a directory called /en/

    https://www.japannewbie.com/cheapjapan/jp/
    https://www.japannewbie.com/cheapjapan/en/

    You can see the title image and html TITLE are different for the two.

    But get this… when I click on the ABOUT link on the left, which goes to a PAGE in the /en/ site… when hovering the hyperlink says that it’s going to go to the /en/about page… but when I click it, the HTML title changes to what is the /jp/ directory setting! On top of that, I get a page not found error for the result as well!

    What’s going on here? I’m baffled.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Harvey

    (@harvey)

    This is so strange, on a hunch I checked to see that maybe my databases weren’t getting criss crossed, but my host has them on compeltely different servers… and the wp-config files are completly distinct. Strange days.

    Thread Starter Harvey

    (@harvey)

    Anyone have a chance to take a look at this, to at least see if they’re seeing the same defect? Any help appreciated, excuse my bumping!

    Well, I’m seeing it but I’m stumped…

    Go to Options -> General for each blog. How do the 2 URI values look for each?

    Thread Starter Harvey

    (@harvey)

    Thanks for taking a look at it HandySolo.

    The 2 URLS are set as follows.

    English side in /en/
    WordPress URL: https://www.japannewbie.com/cheapjapan/en
    Blog URL: https://www.japannewbie.com/cheapjapan/en

    The Japanese side in /jp/
    WordPress URL: https://www.japannewbie.com/cheapjapan/jp
    Blog URL: https://www.japannewbie.com/cheapjapan/jp

    Seems to be alright. I looked again at the sites just now and well, it’s still broken, it didn’t magically fix over night so I guess there really is a problem here!

    Man this is insane. I might try reinstalling the English side.

    I just tried the jp/ one, and clicking that about page, takes me to the proper jp/about/ page. I don’t see a problem with that one..

    https://www.japannewbie.com/cheapjapan/jp/
    https://www.japannewbie.com/cheapjapan/jp/about/

    The only one I see a problem with is is the en/ one. Are you sure the .htaccess settings are done right, on the en/ one? And were re-saved, after making the en/about/ page?

    Are you sure there is an en/about/ page made? Also, are you sure the language settings on the en/ blog is right? You didn’t mix up any codes from to another?

    I dunno, just throwing out some ideas and such..

    spencerp

    Thread Starter Harvey

    (@harvey)

    Hey I think we got it…

    The first MORE was done in the JP directory. The second in the EN directory. They both have the same RewriteBase, pointing to the jp directory… that can’t be right. Will edit the .htaccess for the en one and see if that helps.


    jnewbie@falku% more .htaccess
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /cheapjapan/jp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /cheapjapan/jp/index.php [L]
    </IfModule>

    jnewbie@falku% cd ../en
    /usr/www/users/jnewbie/cheapjapan/en
    jnewbie@falku% more .htaccess
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /cheapjapan/jp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /cheapjapan/jp/index.php [L]
    </IfModule>

    jnewbie@falku%

    I don’t understand what this .htaccess does really…

    Yep, that’ll hose things up. Did you maybe first install the /jp/ one and then later copy it over to the /en/ directory and adjust wp-config.php? If so, that would’ve brought the wrong .htaccess file along for the ride.

    Easy thing would be to just go to Options -> Permalinks for the /en/ site and hit save. That’ll rebuild ’em.

    Thread Starter Harvey

    (@harvey)

    That fixed it! I fixed the htaccess and it’s all good. Thanks for sticking with me on that one!

    Awesome! Happy blogging — and go ahead and mark this thread “Resolved” up there at the top. ??

    Awesome! Glad to hear that. =) Can ya mark this resolved now chief?

    spencerp

    Thread Starter Harvey

    (@harvey)

    Done!

    Ok, thanks, I kept having problems, but once I realized I had to have 2 htaccess I was ok.
    This was a big help ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘2 Installations, Diff Directories, Links getting Confused?’ is closed to new replies.