Forum Replies Created

Viewing 4 replies - 16 through 19 (of 19 total)
  • ok but I’m not sure why the top level and parent page directing to 404, even I used only this plugin in a new installation.

    can I know the functions that handle the page URL so I can check why it goes 404 on the parent/top pages?

    thanks

    I found the issue on polylang.php

    // optionaly removes 'language' in permalinks so that we get https://www.myblog/en/ instead of https://www.myblog/language/en/
    		// language information always in front of the uri ('with_front' => false)
    		// the 3rd parameter structure has been modified in WP 3.4
    		add_permastruct('language', $this->options['rewrite'] ? '%language%' : 'language/%language%',
    			version_compare($GLOBALS['wp_version'], '3.4' , '<') ? false : array('with_front' => false));

    I remove this code temporarily, it seems the code is forcing to add “language” on permalinks which causing the root/parent pages to go 404 error.

    but the issue now if I remove this, it add “language” on the root/home page.

    Can you try check the correct solution on this error, I’ve tried this using old and new setup wordpress and it showing this error.

    I got this problem also on my local/test server, all top level pages are 404, I tried to disabled all plugins and polylang is the only plugin activated.

    when I disabled polylang it works fine.

    Thread Starter Eggy

    (@zearth)

    follow up update,
    I tried to disabled this setting

    – (UNCHECKED) Hide URL language information for default language

    it works with https://www.site.com/en/ but currently all of my english pages and post are 404 error, and if switch on this URL it will cause a problem on my google search list and fb/tweet counter.

    TIA

Viewing 4 replies - 16 through 19 (of 19 total)