WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Subpage permalinks not working (2 posts)

  1. Infarinato
    Member
    Posted 6 years ago #

    Hi, my apologies if this has already been resolved, but, although I saw many [closed] topics about similar (if not identical) problems, I was unable to find one with an actual solution.

    My blog’s base URL is something like http://www.mysite.org/foo/, and I’m using “pretty permalinks” (2nd option, mod_rewrite).

    Now, if I create a [static] page http://www.mysite.org/foo/info, I have no problems reaching it, but, if create a “subpage”, say, http://www.mysite.org/foo/info/subinfo, I get a 404 Not Found. Note that, if I move subinfo to be a sibling (instead of a child) of info, I can reach it no problem… and of course I have no problems if I use WordPress “ugly” default, i.e. http://www.mysite.org/foo/?page_id=3.

    I should also mention that I’m using the standard .htaccess file generated by WordPress, i.e.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /foo/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /foo/index.php [L]
    </IfModule>
    # END WordPress

    Any suggestions?

    Many thanks.

  2. Infarinato
    Member
    Posted 6 years ago #

    OK, my bad: mod_rewrite was/is working fine on my server (…I was already worrying about having to change the Apache “Options”, which I can’t do), as other web applications (including, partially, WordPress) were telling me.

    In my case, it seems as though the standard WordPress sample page (called “Info” in the Italian version, at least) was somehow “corrupted”: its guid was wrong and regenerating the permalink structure wasn’t enough. As soon as I made a small change to it and saved, its children started showing up properly… Of course, I’ve never had any problems with the children of other pages, as I discovered later (…and which I should have checked immediately, instead: d’oh!).

Topic Closed

This topic has been closed to new replies.

About this Topic