Support » Fixing WordPress » Page not found / permalinks / htaccess problems

  • I’ve had a site up for 1+ years. Recently someone told me there were a bunch of 404 pages on the site. I haven’t changed or added anything in more than a few months, so don’t know how the permalink structure got knocked out (other than a recent hacking episode).

    I’ve followed all the permalink and htaccess resets, but the pages are still not found when I set a /postname/ structure instead of the default (it works on default). However, I want the postname structure back.

    When I reset to the default structure, the htaccess file gets stripped out to the following:

    # BEGIN WordPress
    
    # END WordPress

    Any other ideas on how to get it working?

    The site is here, although the pages are showing since it’s on the default mode.

    Thanks,
    Antonella

Viewing 3 replies - 1 through 3 (of 3 total)
  • What permalink structure are you trying to use? When you use it, what does htaccess say?

    Thread Starter antorera

    (@antorera)

    Hi, Thanks for answering. Forgot to add that I don’t get the message in the gray box (about wordpress being able to rewrite the file if there was one).

    I am trying to use the /%postname%/ variation, but it seems that none will work except for the default structure.

    Forgot to add that I don’t get the message in the gray box (about wordpress being able to rewrite the file if there was one).

    That means it is able to rewrite but I don’t know why it would strip it out. It should be

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Use ftp or sign into your hosted account and edit the file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page not found / permalinks / htaccess problems’ is closed to new replies.