• Resolved jimoe

    (@jimoe)


    WP 3.9.2

    The directory for a post is not created when the post is published. If I create a post, say “howdy”, write stuff, the permalink shows https://www.example.com/howdy/, and when I publish the post no directory is created.

    The post shows on the home page with the “hello, world” starter post, and has the aforementioned link. I get a 404 when I click on the link.

    This may be a permissions problem on the host but I do not see it at the moment.

    Suggestions?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator James Huff

    (@macmanx)

    A physical directory won’t be created. The posts are stored in the database by post ID, and when permalinks are set, the internal rewrite system along with your .htaccess file rewrite the URL to appear like a directory.

    Try re-saving your permalink structure at Settings/Permalinks in your admin panel. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

    Thread Starter jimoe

    (@jimoe)

    Ah! Okay. There is something broken about the way the .htaccess file is created. Whenever the .htacess file exists, I get the “Access Forbidden! You don’t have permission to access the requested directory. …” page.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Moderator James Huff

    (@macmanx)

    Huh, that’s odd. Is there anything else in the .htaccess file? Have you contacted your hosting provider about this?

    Thread Starter jimoe

    (@jimoe)

    That is the complete contents of the file.

    I am the webmaster/provider; it is a local installation. I guess I’ll wander over to the Apache group and see what they have to suggest.

    Moderator James Huff

    (@macmanx)

    Oh! You’re in the wrong forum. ??

    I have moved this over to the right forum, and someone with more local experience than myself should be along to help.

    Thread Starter jimoe

    (@jimoe)

    > I have moved this over to the right forum, …
    >
    Cool! Umm, where has this topic been moved?

    Thread Starter jimoe

    (@jimoe)

    Oh! Why, it is in Localhost Installs! That was easy.

    Thread Starter jimoe

    (@jimoe)

    Solved.

    I needed to add “Options +FollowSymLinks” to .htaccess.

    Moderator James Huff

    (@macmanx)

    Excellent, thanks for sharing the solution!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘The directory for a post is not created when it is published’ is closed to new replies.