Fix For When WordPress Permalinks Page is Blank

I did a brand new wordpress setup  for a client and when I went to the permalinks settings it was blank. No options to change the permalink structure from the awful default settings. I found out a fix for it and thought I’d share it with you.

The file that should display is /wp-admin/options-permalink.php, but the problem file turns out to be wp-admin/includes/misc.php

Look for the line that reads:

$got_rewrite = apache_mod_loaded(‘mod_rewrite’, true);

It should be close to the top of the code. Change it to read:

$got_rewrite = true;

Someone correct me if I’m wrong, but as I understand it, you are changing a conditional statement to an absolute one by doing this. I’m not sure why it’s causing a problem, but that fixed it for me.

Related posts:

  1. Easy Permalink Redirection With WordPress

Comments

  1. Adrian Pavone says:

    Hey Mike,

    Yeah, the conditional statement basically says that “if the mod_rewrite apache module is currently loaded then rewrite option is true”. So either php is unable to detect that your mod_rewrite module is loaded or the client site/server system is performing the rewrite through an alternate means (not the mod_rewrite module). Or, of course, there is potential that the client site/server system is not able to rewrite due to the module not being configured/being included in the first place.

    Hope that helps,
    Adrian Pavone

  2. Reyven says:

    Bingo! Finally got the “real” resolve. I’ve been searching this solution for hours. Though I did change the permalink_options in the database manually for the custom permalink, but this problem just bothers me ever since I installed the wordpress in our site.

    Huge thanks to you Mike. Cheers.

  3. Mike Haydon says:

    You’re very welcome Reyven. Glad I could help :)

  4. joseph says:

    nice website. thanks to mike and reyven.

  5. karl says:

    This is it, ive been having the same issue with reyven’s. This is really a big help!

    Thnx to you Mike, great article..

  6. Mike Haydon says:

    Thanks Joseph & Karl. Good to know others don’t have to figure it out like I did :D

  7. Steve Yeoman says:

    Thanks everybody.

    This is the only solution that worked after hours of trying all the others.

  8. Farshad Ali says:

    Worked for me too :P

  9. Rodrigo Noronha says:

    This is the only solution that worked after hours of trying all the others. (2)

    Thanks, Mike Haydon!

  10. Glenn says:

    YESSS!!! it works ur a god bro ! thought i was gunna have to do a complete reinstall haha nice thanks

Speak Your Mind

*