• Hello good people,

    I have an annoying issue. I used polylang to create a multilingual site and everything works perfect. I have my site both in spanish and in english, however theres a little problem which is that whenever I enter my site the first thing I see is that it shows up in english version instead of the spanish version. Now this wouldn’t be a problem normally but my client speaks spanish and is doing business in a spanish country so he wants it to be in spanish FIRST then if the person wants or talks english he can switch it accordingly.

    I already went to wordpress settings and made the site go to a static home page and set it to the spanish version of the page but the site still takes me to the english version.

    Please help and thank you!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Check the content of .htaccess file, maybe the redirect is set in there.

    Thread Starter darkblitzrc

    (@darkblitzrc)

    thanks could you be a little more specific as in which file it must but in and what should I do? thanks

    Thread Starter darkblitzrc

    (@darkblitzrc)

    Ok i got hold of the file but what should I put if I want the spanish page to show up first? heres what it says

    # BEGIN WordPress
    <IfModule mod_expires.c>
    	ExpiresActive On
    	ExpiresByType image/jpg "access plus 6 hours"
    	ExpiresByType image/jpeg "access plus 6 hours"
    	ExpiresByType image/gif "access plus 6 hours"
    	ExpiresByType image/png "access plus 6 hours"
    	ExpiresByType text/css "access plus 6 hours"
    	ExpiresByType application/pdf "access plus 1 week"
    	ExpiresByType text/javascript "access plus 6 hours"
    	ExpiresByType text/html "access plus 10 minutes"
    	ExpiresByType image/x-icon "access plus 1 year"
    	ExpiresDefault "access plus 3 hours"
    </IfModule>
    <ifModule mod_headers.c>
    Header set X-Endurance-Cache-Level "2"
    </ifModule>
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Not a .htaccess fix…

    Try these:
    Default language
    https://polylang.pro/doc/configure-the-languages/#default-language

    Detect the browser preferred language
    https://polylang.pro/doc/detect-the-browser-preferred-language/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘My site takes me to the secondary language instead of the primary one??’ is closed to new replies.