Title: [Plugin: Polylang] 404 errors with /%postname%/ permalinks
Last modified: August 20, 2016

---

# [Plugin: Polylang] 404 errors with /%postname%/ permalinks

 *  [fake946](https://wordpress.org/support/users/fake946/)
 * (@fake946)
 * [14 years ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/)
 * Hello,
 * I’m using Polylang v0.8.5.
    When I use the default permalink type “[http://localhost/wp2/?p=123&#8221](http://localhost/wp2/?p=123&#8221);,
   everything works fine. (Thank you for your work, btw.)
 * But when I switch to the permalink type “[http://localhost/wp2/example-article/&#8221](http://localhost/wp2/example-article/&#8221);,(
   [http://localhost/wp2/%postname%/](http://localhost/wp2/%postname%/)) I keep 
   getting 404 errors.
 * What am I doing wrong ?
 * Thank you in advance for your answer,
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/?output_format=md)
2

 *  [LukaszWiecek](https://wordpress.org/support/users/lukaszwiecek/)
 * (@lukaszwiecek)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746956)
 * I have the same problem. Links /%postname%/ WordPress returns a 404 error
 * WordPress 3.5, Polylang 0.9.8, Nginx server.
 * 1 – save the settings again friendly links
    2 – I checked on the skin Twenty 
   Ten 3 – I turned off all the other plug-ins
 * The problem still exists.
 * (sorry for my poor English;)
 * Best regards
    Lukasz
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746957)
 * which link is 404?
 *  [Nyanabhadra](https://wordpress.org/support/users/nyanabhadra/)
 * (@nyanabhadra)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746958)
 * I have the same problem.
 * It only happened to the root menu, but for the drop down menu is fine.
 * Home is fine, but the rest of the menu return 404.
    I tried to save a new .htaccess
   I tried to deactivate most of the plugins that I have installed before Polylang.
 * Actually, polylang works fine before, probably due to certain plugin have a new
   update or maybe other issue.
 * Thank you so much for helping.
 * smile,
 *  [Nabil](https://wordpress.org/support/users/nabil_kadimi/)
 * (@nabil_kadimi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746959)
 * Resaving the permalinks solved the issue for me.
 * Don’t forget to clear cache if you have any caching plugin installed.
 *  [Nyanabhadra](https://wordpress.org/support/users/nyanabhadra/)
 * (@nyanabhadra)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746960)
 * Dear Nabil,
 * Thank you so much.
    I have figured it out the problem long time ago.
 * In the Settings of Polylang, I chosed this
 * Keep /language/ in pretty permalinks. Example: [http://eiab.eu/language/en/](http://eiab.eu/language/en/)
 * with smile from Germany!
 *  [LukaszWiecek](https://wordpress.org/support/users/lukaszwiecek/)
 * (@lukaszwiecek)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746961)
 * Hello,
 * I found the cause of the problem. The functions.php file had code that changed
   the links to the authors of /author/ to /autor/
 *     ```
       add_action('init', 'author_rewrite');
       function author_rewrite() {
       	global $wp_rewrite;
       	$wp_rewrite->author_base = "autor";
       	$wp_rewrite->flush_rules();
       }
       ```
   
 * After removing this code, everything works fine 🙂
 * Can we somehow accept this change links to sites with plug Polylang authors?
 * Best regards!
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746962)
 * I can’t make anything with plugins and themes which use flush_rules in such a
   bad way. This function here is executed at every page load and one should *never*
   do this.
    [http://codex.wordpress.org/Rewrite_API/flush_rules](http://codex.wordpress.org/Rewrite_API/flush_rules)
 * Just comment the line `$wp_rewrite->flush_rules();` and you will be able to use
   the author base you want (go to settings->permalinks and click on ‘save changes’
   to manually flush rules).
 * If a plugin or a theme want to programmaticaly flus rules, it should make it 
   at activation and deactivation.

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/?output_format=md)
2

The topic ‘[Plugin: Polylang] 404 errors with /%postname%/ permalinks’ is closed
to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 22 replies
 * 9 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-404-errors-with-postname-permalinks/page/2/#post-2746962)
 * Status: not resolved