Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Lokheed

    (@lokheed)

    This is getting very strange.

    Changed themes. Problem persists.
    Created new DB. Problem persists.
    Removed everything except for required WP entry in htaccess. Problem persists.

    My install of WP is not in the root and my home page is not my blog. Could this be a WP bug?

    Thread Starter Lokheed

    (@lokheed)

    Okay, so the problem is in WP and Permalinks.

    I have WP installed in /blog/. And through the guide, I’ve moved WP in the root (moving index.php and putting required lines in htaccess and changed WP address and URL accordingly).

    So I serve a static front page (main) and then my blog is found at news. I’ve setup Permalinks to use pretty URIs, but that’s the problem. I’ve prefixed them all with:

    /news/%postname%/

    It works fine, but apparently anything I put immediately after news in the address bar, returns the blog page (e.g., dom.com/news/3000/). Not a 404. So it looks like WP can’t handle a Permalink pointing to the actual page you use to serve your blog (in my case news). If I change the Permalink structure to the following, it works:

    /news/%year%/%postname%/
    or
    /blog/%postname%/
    or
    /%postname%/

    Still trying to understand the extent of it by playing around with different Permalink structures, but it looks like WP needs a bit of tweaking to work in this manner.

    I had the same problem but had already set the structure to /%postname%/.

    I had the “Robots” plugin and found that ticking “Disable the date-based archives” was causing all the problems.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Archive by Year permalink returns main blog page’ is closed to new replies.