Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Gunu

    (@grafcom)

    @katarinan,

    How are your settings in WordPress – URL and WP URL – ?

    How is it set in de root? .htaccess plus index.php?

    How are the settings of qTranslate-X?

    Thread Starter KatarinaN

    (@katarinan)

    URL – https://www.mnovakphoto.com/
    WP is installed in subfolder – https://www.mnovakphoto.com/blog/

    .htaccess in the www_root:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # BEGIN WordPress
    <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

    index.php in the www_root:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */
    require('./blog/wp-blog-header.php');

    .htaccess in the www_root/blog:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress

    index.php in the www_root/blog:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );

    qTranslate-X settings:
    – default language = Slovak
    – Show displayed language prefix when content is … checked
    – Use Pre-Path Mode … checked
    – Hide URL of default language … checked

    Plugin Author Gunu

    (@grafcom)

    KatarinaN,

    change .htaccess file in www_root: to

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress
    Plugin Author Gunu

    (@grafcom)

    also change htaccess in www_root/blog: to

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress
    Thread Starter KatarinaN

    (@katarinan)

    Changes in .htaccess files done, however issue persist …

    Plugin Author Gunu

    (@grafcom)

    @katarinan,

    Download the latest Beta version of qTranslate-x Download it here

    Do not use install via WordPress admin!
    First unzip the new file.
    Deactivate the existing version of qTranslate in WordPress admin.
    Then with FTP delete all files in the existing qtranslate-x folder and after that copy all new files in it.
    Activate qTranslate-x again via WordPress admin.

    Thread Starter KatarinaN

    (@katarinan)

    Beta version installed according to your direction. Some changes occured:

    – when I switch among EN menu items, all links are correct except link to my blog. It redirects to https://www.mnovakphoto.com/blog/en/ (error 404). As you can see above, it was https://www.mnokaphoto.com/en/blog/en/ before.

    – new issue is, when I switch language from SK blog (https://www.mnovakphoto.com/blog/) to EN it redirects to https://www.mnovakphoto.com/blog/en/ = error 404

    Plugin Author Gunu

    (@grafcom)

    @katarinan,

    I read this, although for a different qTranslate but we can try.

    1. disable all your languages and save
    2. add your default language (SK) and save
    3. after that the (EN) language and save

    Plugin Author Gunu

    (@grafcom)

    @katarinan,

    if it still does not work.

    It must have something to do with redirects.

    Would you like to change temporary the addresses (in settings – general) to:

    WordPress Address (URL) – https://www.yoursite.com/blog/

    Site Address (URL) – https://www.yoursite.com/blog/

    To see if everything is working correctly then when visiting your site with https://www.yoursite.com/blog/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘qTranslate-x – navigation menu not working properly’ is closed to new replies.