• Hi!

    This is my first time posting in this forum, so please excuse me if this has been answered elsewhere. I’m currently building a site on a test server, and it is not live on the internet yet. For some reason, all of the pages I’ve added today are returning a 404 error when I try to view them. They are showing up when I view “All Pages” in my dashboard but you get a 404 error when trying to actually visit the page. This is the first time this has happened since I started developing the site. Any help would be greatly appreciated! Please let me know if you need any more information about the issue. Thanks in advance for any help you may be able to give!

    Kind regards,
    Danielle

Viewing 10 replies - 1 through 10 (of 10 total)
  • Make sure your Permalinks have been updated and saved. Settings > Permalinks (select the desired format) > Save Changes.

    Refer this link https://codex.www.ads-software.com/Using_Permalinks

    As suggested by Anil you should take a look at your permalink

    Thread Starter d6collab

    (@d6collab)

    Thanks so much for responding so quickly, Anil and Ashiquzzaman!

    I actually just adjusted the permalink setting. I don’t know why but it was set to “custom” today even though I had originally set it to “post name”. I deleted the pages I added before I changed the setting & added them again once the setting was correct, but the pages are still giving me a 404.

    Hi,

    Set your desired permalink from wordpress admin area and add this code in htaccess of your blog/site:

    # 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

    Are you facing this problem with just the new posts and pages or all of them? If all of them are inaccessible then one of the above solutions should work. If only new pages are inaccessible then the problem might be something else.

    Thread Starter d6collab

    (@d6collab)

    It’s just the new pages that were added today that are having the problem.

    I don’t know how to get to the htaccess, as I don’t have access to a cpanel. I can only access the dashboard. My boss can get to the back end of the site, but he’s not a developer.

    The htaccess issue usually affects all the pages. Have you tried deactivating all your plugins and switching to a different theme? If not try that and post the effects here.

    Thread Starter d6collab

    (@d6collab)

    I deactivated all of my plugins and switched themes and the problem still persists. Any other suggestions? I’m willing to try just about anything before starting over completely. Thanks for all the help!

    The problem could very well be the htaccess file. If you have FTP or cPanel access, delete the .htaccess file from your site’s root directory and then reset your permalink structure (set it to default and then set it you your intended structure). I wish I could be of more help.

    Thread Starter d6collab

    (@d6collab)

    Thanks so much, WP Gurus! I really appreciate you taking the time to help me!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘New pages returning 404 error’ is closed to new replies.