• Resolved jedweb

    (@jedweb)


    Everything is working fine except my main blog page results in a 404. The blog posts and main blog page are to be at mydomain.com/news/

    Prior to move:
    – static site at mydomain.com
    – WordPress blog at mydomain.com/news/

    Move steps:
    – created new WordPress blog at mydomain.com/test/
    – export from mydomain.com/news/
    – import result to mydomain.com/test/ (used WordPress Importer plugin)
    – create all static pages from mydomain.com in mydomain.com/test/ as pages
    – move files from mydomain.com/test/ to mydomain.com
    – renamed /news/ subdirectory to /newsOLD/
    – set permalink structure to /news/%postname% ( I want the blog part to continue to be at /news/ )

    After move:
    – all pages and posts work and display correctly
    – posts are correctly at mydomain.com/news/postname
    – post categories are correctly at mydomain.com/news/categoryname
    – etc.
    – however, going to mydomain.com/news/ (where main blog page should be) results in 404 page

    Notes:
    – I have the proper WordPress index.php in the root.
    – I have redirects in my htaccess to point the old static pages to the new WordPress pages but even with just the default WordPress htaccess the 404 occurs.
    – Site URL and WordPress URL in General Settings is mydomain.com
    – I checked the options table in the database and initially site_url was still set to mydomain.com/test/ but changing this had no effect
    – I’m not using any caching or redirect plugins

    Am I misunderstanding something here? Am I forgetting something? This should work, no?

    Thanks in advance for any insight.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Moderator t-p

    (@t-p)

    My statement about mod-rewrite is correct, right?

    yes, make sense to me

    Thread Starter jedweb

    (@jedweb)

    Still frustrated by this issue.

    I tried deleting .htaccess so WordPress would recreate it. No change.

    Also, since trying to fix this, for some reason on my Posts > Categories , there is now checkbox next to my ‘Blog’ category. All other categories have the checkbox so that you can perform Bulk Actions on them. Only ‘Blog’ is without a checkbox. Weird.

    Thoughts?

    Thread Starter jedweb

    (@jedweb)

    @tara You say I may have a bad WordPress install.

    Would exporting the site, clearing out the directory, and then re-importing the site resolve that?

    Moderator keesiemeijer

    (@keesiemeijer)

    Just did a test on my testsite and I think this is default WordPress behavior when using ‘/news/’ as a prefix to your permalink structure. What do you want to happen when users visit mydomain.com (without /news/)? Redirect to mydomain.com/news/ ?

    Thread Starter jedweb

    (@jedweb)

    Hi @keesiemeijer

    Thanks for the response.

    I want mydomain.com to show my home page, which is a Page in my site. I do not want it to redirect. I want mydomain.com/news/ to be the main page of the blog, displaying my most recent blog posts.

    Right now mydomain.com/news/ results in a 404 while mydomain.com/news/any-post-name works fine. That just seems strange to me. Why would just mydomain.com/news/ not be found?

    This is killing my sites traffic as mydomain.com/news/ was one of my most visited pages.

    Thanks for sharing any ideas you may have.

    Moderator keesiemeijer

    (@keesiemeijer)

    Try creating a static front page and a posts page (news):
    https://codex.www.ads-software.com/Creating_a_Static_Front_Page

    Thread Starter jedweb

    (@jedweb)

    @keesiemeijer … That’s exactly what I was looking for. It worked like a charm.

    I had created the static front page correctly but I hadn’t created a blank page called ‘news’ that I was to set my posts page to.

    Setting the “Posts page” on Settings > Reading Settings is the key.

    Thank you.

    Moderator keesiemeijer

    (@keesiemeijer)

    You’re welcome. I’m glad you’ve got it resolved ??

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Moved blog, now 404 only on main blog page’ is closed to new replies.