• Resolved dinoh

    (@dinoh)


    Whenever I change language on my site I get “The requested URL /hr/ was not found on this server.” My .htcaccess is a regular wordpress one. I am using Authentic theme. PHP version is 7.0.15. My permalinks were first on custom (didn’t work), and now I changed them to plain and I still have the same problem. Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gregory Karpinsky (@tivnet)

    (@tivnet)

    Is there a possibility that you have had the /hr/ folder before installing WPGlobus?

    Thread Starter dinoh

    (@dinoh)

    No I didn’t have that folder. ‘hr’ stands for Croatian language. If I’d put Spanish option it would probably say that it can’t find /es/. I think that the problem is in permalinks. I believe that it was set to custom at first. Then I set it to plain, but the WPGlobus doesn’t support plain. Then I tried switching to something that’s not plain (ex: Post Name), but then I can’t even access the post in default language. I’ll try to fix this first and then I hope that language switching will work

    Plugin Author Gregory Karpinsky (@tivnet)

    (@tivnet)

    If does not, please submit a ticket on https://wpglobus.com/
    Thanks

    Thread Starter dinoh

    (@dinoh)

    FIXED: The problem was in fact in permalinks. To make them work, I had to edit /etc/apache2/apache2.conf

    <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride None
            Require all granted
    </Directory>

    To

    <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
    </Directory>

    Then I ran sudo service apache2 restart and sudo a2enmod rewrite
    My permalinks started working after that which means WPGlobus is finally working.

    Plugin Author Gregory Karpinsky (@tivnet)

    (@tivnet)

    Great!

    To summarize: the issue wasn’t related to WPGlobus but to general system administration. Specifically, Apache was not set to read the .htaccess files and mod_rewrite was not enabled. Therefore, WordPress could not handle the “nice permalinks”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘URL not found while changing language’ is closed to new replies.