• Resolved Chris Gatcombe

    (@cgatcombe)


    I’ve been dabbling with WordPress for a while, and have installed it in its own wordpress folder under my web root. I’m currently running the latest version 4.8.

    Having set up some pages, and things seem to be working fine, it was pointed out that my URLs have ‘wordpress’ in them. I tried changing this by removing it from my site address, and then copying .htaccess and index.php from the wordpress folder to my web root folder (and also editing index.php for the new wp-blog-header location).

    Now I am finding that while all links and pages work, the link back to my home page results in an ‘oops – that page can’t be found’ page. This page is styled with my theme, so I’m not convinced that WordPress is broken, rather that something is wrong with the .htaccess rules. I removed (renamed) the existing .htaccess in the wordpress folder to prevent conflict. I have refreshed permalinks and verified that the correct .htaccess gets updated.

    Where do I go from here?

Viewing 8 replies - 1 through 8 (of 8 total)
  • charlesdaniel

    (@charlesdaniel)

    Hey Chris,

    Start by going to Settings » Permalinks, and click on Save Changes button. This will update your permalinks settings and flush rewrite rules. In most cases this solution fixes the WordPress posts 404 error.

    Try this first and if the problem persists let me know,
    Charles

    Thread Starter Chris Gatcombe

    (@cgatcombe)

    I already tried that, no joy. Wouldn’t all pages have problems if this was messed up? I don’t think I am getting 404 errors from apache, since the displayed page is formatted in my theme.

    Hey Chris,

    Please take a look at the following link, it’s an external blog, however it gives a great breakdown of how to resolve the issues you seem to be facing. It also gives great advice on making your links prettier.

    If this does not resolve, please provide the URL and i’ll take a look for you.

    Many thanks,
    C

    Thread Starter Chris Gatcombe

    (@cgatcombe)

    Charles,

    Thanks for the link. However this just seems to reiterate ‘refresh permalinks’, and doesn’t seem to do anything. I checked the datestamps on the .htaccess file and it does not get updated. My .htaccess has exactly the same content as shown in the example.

    Are you sure this is really a 401 error and not just a wordpress issue?

    Thread Starter Chris Gatcombe

    (@cgatcombe)

    Hmm – my issue seems to be the browser cache, which I thought I had cleared. Nope – once I did this,I now see the home page coming up (and with no ‘wordpress’ in the url). I think I have it fixed now. Thanks for your helpful comments along the way.

    No problem Chris! Happy to help.

    Glad you go to the bottom of it,

    Are you happy to change the status to resolved?

    If so, all the very best,
    Charles

    Thread Starter Chris Gatcombe

    (@cgatcombe)

    OK done. Thanks 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Oops that page can’t be found – main site page only’ is closed to new replies.