• Hi

    I was messing around and made a big misstake. I changed the settings for permalinks and and while doing this I wrote totally garbage in the custom field.

    Everything is broken after this. It doesn’t matter what I do, I only get the dreaded 404 error. I tried to get into wp-admin again but with the same result, you don’t have permission to access.

    I can get access if I delete the .htaccess file. But this effect lasts only for minutes. The error is soon back again (with a newly generated .htaccess file).

    I took a look at the database and found two records there “rewrite_rules” and “permalink_structure”. Can I change these, and to what?

    Please help, i’m starting to get desperate since my wife has entered a lot of info and I don’t wan’t to do a total reinstall.

    Regards

    /Thomas

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Reset your permalink from wordpress admin area -> settings section and add this code in htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

    I think I may have found where you need to change your settings but I’m not 100% sure so I’m double checking…

    Ok… so if you go to your phpmyadmin – go to your wp_options table and find the permalink_structure – that should contain whatever you want your permalink to be – in there you can revert it back ??

    Thread Starter trambran

    (@trambran)

    I think I might have solved it.

    I installed anoter wordpress blog and looked at the database. It looked like the rewrite_rules should be removed and that permalink_strukture should be empty. I did so on the failing installation.

    Then I removed the .htaccess file to gain access again, logged into wp-admin and went to the settings for permalinks. I then just resaved…

    It works… can someone confirm that I did the right think and that I won’t have any problems down the road ??

    Regards

    /Thomas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalink settings changed, how do I revert back to default?’ is closed to new replies.