• I have just moved my site to wp and I get a 404 for each page/post except the homepage. I saw this issue come up in the forum and once people saved the permalinks it went away but it didn’t help me.
    I have not touched the htaccess but I saw that in once forum someone recomended uncommenting the rewrite con. I don’t know what that means but I would appreciate it if someone could have a look at my htaccess to see if there are any issues there because I don’t know enough about it. Thanks!

    The htaccess is as follows:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/coloring/(.*)$

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

    # END WordPress

Viewing 3 replies - 1 through 3 (of 3 total)
  • there may be a misconfiguration in rewrite rule (wordpress database). flush the rules (backup and delete the .htaccess file) and then regenerate your permalinks..

    Thread Starter nicole2009

    (@nicole2009)

    I’m not sure that I understand. Should I erase the .htaccess file or the contents of the file?
    How do I regenerate permalinks?

    Thread Starter nicole2009

    (@nicole2009)

    I found the solution and I am adding it here for those who might be looking for the same solution (I found so many unanswered questions on this issue before I found the solution).
    You have to erase the following lines from the htaccess file and that solves the problem:
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/coloring/(.*)$

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I get 404 for all pages except the homepage’ is closed to new replies.