• Resolved fritzloest

    (@fritzloest)


    hi

    this past week i discovered that all the pages of my recently newly designed site (except the home page -https://sacredriver.co.za, which is working fine), when i try to access them, give me the 404 not found error (‘the requested url is not found on this server’). however, when i check the pages’ urls on the ‘edit page’ pages, their urls are in fact correct. i’ve tried to follow the other forum posts on this error message but have not been able to figure out what the problem is.

    thank you,

    fritz

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    1. Please provide a link to a page on your site where we can see this. Thanks.

    2. How is your site hosted? Your own server or a commercial host?

    3. Try going to “settings->permalinks” and click “save”.

    Thread Starter fritzloest

    (@fritzloest)

    hi steven

    thank you for your response – much appreciated.

    1. https://sacredriver.co.za/fundamental-uncertainty/
    2. hosted by commercial host which i access via cPanel
    3. i’ve done this again now, message at top appearing, ‘permalink structure updated’, but no change … all pages except home page still gives 404 error page. (i’ve tried to find the .htaccess file via cPanel, but can’t find it in the ‘public_html’ root directory).

    thanks

    Dion

    (@diondesigns)

    Please contact your hosting company and ask them if your hosting plan supports .htaccess files. If your hosting plan doesn’t support .htaccess files, you should find a new hosting company. If they do, ask them how .htaccess files are accessed and edited…the files may be set up in a way that only allows editing through cPanel.

    Thread Starter fritzloest

    (@fritzloest)

    my host does support .htaccess files and i found it via cPanel and can edit it there. please advise how i should edit it to solve my problem as above? here is the existing .htaccess file:

    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/sacredri/public_html/wordfence-waf.php'
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file '/home/sacredri/public_html/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Add the basic htaccess at the top:

    https://codex.www.ads-software.com/htaccess#Basic_WP

    Thread Starter fritzloest

    (@fritzloest)

    thank you steven. that resolved the issue perfectly.
    very much appreciated.
    fritz

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘404 not found error’ is closed to new replies.