WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 404 on pages, posts, ... (21 posts)

  1. Memnosis
    Member
    Posted 1 year ago #

    Hallo,

    i have 404 on posts, pages, categories, ...

    - htaccess: checked
    - wp-config.php: checked
    - changing permalinks and save: checked
    - disable plugins: checked
    - use default template: checked
    - chat with host (if htaccess is readable): checked (an other multisite at the same host is running perfectly)

    first i had 404 only on pages (posts and categories worked)

    than i changed template from showing posts on frontpage to static site and back (a tip from an other thread here about this issue) ... and now the startpage is gone and i get 404 on every page, category, ...

    but after trying to solfe my first problem for days , i think this could be the right way / hint ;-)

    http://ecosocial.me/love/inspirat/ the multisite i'm working on (same issue in every multipage / subfolder)

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I think that sounds like a server issue.

  3. Memnosis
    Member
    Posted 1 year ago #

    not sure, chattet with the host a few times and i have an other multisite installation there running.

    if it's about the server i need more specifics to ask...

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    All we can really say from here is that it sounds as if the server isn't parsing the .htaccess file correctly (if at all). Do the problems persist if you use the default permalink structure?

  5. Memnosis
    Member
    Posted 1 year ago #

    yes, the problem is still the same with default permalink structure.

    i asked my host about that and everything should be okay

    when i deletetd htacess i got an errorpage, so i think it should be readable

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Anything in the error logs?

  7. Memnosis
    Member
    Posted 1 year ago #

    i can download logfile, but don't know how to read latest.log.gz ?

    and i can enable / disable php errors?!?

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    Are you sure that latest.log.gz is an error log?

  9. Memnosis
    Member
    Posted 1 year ago #

    no, i'm not. my host is looking in the apache error logs right now (i cant get them on my own)

  10. Ask your host for PHP errors. They're not always in the apache error log.

    Also try using ugly permalinks and see if they work then.

  11. Memnosis
    Member
    Posted 1 year ago #

    they told me to change my htaccess to the following (and now navigation and everything is away)

    'RewriteEngine On #rewriting wordpress stuff to the root RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/wp-((content|admin|includes)|((cron|login)\.php)) RewriteCond %{HTTP_HOST} ([a-zA-Z0-9-]+\.([a-z]{2,4})|co\.uk|me\.uk|org\.uk|priv\.no)$ RewriteRule ^(.*)$ http://%1/%{REQUEST_URI} [L,QSA] #rewriting everying that can't be found to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] #rewriting everything else to index.php RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteCond %{REQUEST_URI} !^/wp-(content|admin|includes|login|cron)(\.php)? RewriteRule . index.php [L]'

  12. Memnosis
    Member
    Posted 1 year ago #

    what are ugly permalinks?

  13. Memnosis
    Member
    Posted 1 year ago #

    here is the mess: http://ecosocial.me/love/

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    what are ugly permalinks?

    The default permalinks preset in Settings -> Permalinks.

  15. Memnosis
    Member
    Posted 1 year ago #

    i tryed it in preset permalinks

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    Which preset? And did you save your changes?

  17. Memnosis
    Member
    Posted 1 year ago #

    i tyed all possibilitys for permalinks, especially the preset witch numbers and yes i saved

    better formatting of suggested htaccess

    #rewriting wordpress stuff to the root 
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/wp-((content|admin|includes)|((cron|login)\.php))
    RewriteCond %{HTTP_HOST} ([a-zA-Z0-9-]+\.([a-z]{2,4})|co\.uk|me\.uk|org\.uk|priv\.no)$
    RewriteRule ^(.*)$ http://%1/%{REQUEST_URI} [L,QSA] 
    
    #rewriting everying that can't be found to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^index\.php$ - [L] 
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] 
    
    #rewriting everything else to index.php
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteCond %{REQUEST_URI} !^/wp-(content|admin|includes|login|cron)(\.php)?
    RewriteRule . index.php [L]

    i can activate php-errors and i think i see errors then appearing on the site

  18. Whomever gave you that .htaccess is not particularly familiar with WP.

    Read http://codex.wordpress.org/htaccess - you need ONE of those.

  19. Memnosis
    Member
    Posted 1 year ago #

    it's from my host http://www.one.com :(

    after a terrible journey today with them
    i turned back to the older version.

    now my navigation is away :-(

  20. Memnosis
    Member
    Posted 1 year ago #

    okay, not the complete navigation is away, only EMPTY category-links in the navi, where no posts are at the moment: http://ecosocial.me/love/

    (older problems are solved at the moment, dont know why)

  21. okay, not the complete navigation is away, only EMPTY category-links in the navi, where no posts are at the momen

    You mean "When I go to a page for a category that has no posts, I get a 404?"

    Because that's not a bug, that's how WP works. Put some posts in the category.

Topic Closed

This topic has been closed to new replies.

About this Topic