I just installed a friends blog on my LAMP stack, which has mod_rewrite enabled (I’m using it for clean URLs on my Drupal installs on the same server). For some reason, WordPress (3.0.3) isn’t recognizing that mod_rewrite is enabled. In the Permalinks menu it’s displaying options for PATHINFO permalinks (with index.php preceding the url string).
My fix for now was to just use the Custom Structure field and input what I wanted less the index.php part WordPress seems intent on inserting, which works but I’d like to get an actual fix for this in place.
Is this a 3.0.3 anomaly? I haven’t had much time to investigate my server configuration, but any guidance would be much appreciated.
That looks like your problem – check out this line in
wp-includes/vars.php
:I think you’ll need to override this variable manually, either in a plugin or your theme’s
functions.php
:Props to @John P Bloch:
Alternatively you can add the following line of code to your functions.php file:
We’re doing this to make WordPress play well with nginx.