Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have just upgraded my wordpress installation from 3.1 to 3.1.1 and my custom structure permalinks are now broken,

The permalinks were set to follow this procedure,

/%category%/%postname%

however now they are just falling back to

?page_id=30

How can I fix this what has changed in 3.1.1 I wonder if it is a problem with my .htaccess file? Or maybe I am running on IIS?

share|improve this question
add comment

migrated from stackoverflow.com Apr 15 '11 at 19:53

This question came from our site for professional and enthusiast programmers.

3 Answers

Here are some steps for you

a) Access you site through ftp and remove .htaccess file (possibly backup it)

b) Go to admin of your site (wordpress admin) and open permalink settings form

c) set the first option to custom and put the value in text box

/%category%/%postname%

d) save changes and check you front-end for links

e) if proper links visible check one to view if they aren't returning 404

f) if you see 404 , put this line at the top of the .htaccess

 Options +FollowSymLinks

hopefully this will this the issue

:)

share|improve this answer
add comment

If you are using Custom Post Types with the rewrite option you will want to flush your WP Rewrite rules after an upgrade. Adding this to your plugin or functions.php can help (tested with 3.4):

    // After an upgrade, flush rewrite rules
    function flush_rules_post_upgrade() {
        global $wp_rewrite;
        if( is_object($wp_rewrite) )
            $wp_rewrite->flush_rules();
    }
    add_action('update_option_db_upgraded','flush_rules_post_upgrade');
share|improve this answer
add comment

I think your .htaccess is no more getting updated from admin.

So try to update url re-writing code manually in .htacess.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.