Forums

Directory being created (14 posts)

  1. Chris Lowry
    Member
    Posted 1 year ago #

    Hi there.

    I notice on my site, a subdirectory called "/blog" keeps being generated.

    I have a WP install in a subdirectory, and it uses .htaccess to put blog posts under the /blog url - but this doesn't work when there is an actual directory present.

    Any idea what can be creating the empty folder? I keep deleting it, only for it to return, breaking all posts on my site!

    Chris

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Site url? WordPress doesn't stores posts in directories. All of your site's content is stored in your database.

  3. Chris Lowry
    Member
    Posted 1 year ago #

    Hey Esmi,

    Allaboutchris.org and Allaboutchris.org/blog.

    No, I understand that its not flat file. What I mean is that a htaccess set to use friendly urls, with all posts under blog/2011/post-title will break if the blog/ directory actually exists!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Agreed. You'll need to use a different sub-directory for the second site.

  5. Chris Lowry
    Member
    Posted 1 year ago #

    Sorry? I don't have a second site.

    There is one install in a subdirectory - I've not posted it here since the whole reason its there is for safety to reduce hacking - but imagine its allaboutchris.org/wpinstall.

    I have that set up using htaccess and an index file in root to appear that the site is installed at allaboutchris.org, with pages at allaboutchris.org/pagename and blog posts under allaboutchris.org/blog.

    However, something keeps creating an actual folder under /blog, which thus ends up breaking the .htaccess code. Any idea what process would be creating a blank directory?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Get rid of your changes and see Giving_WordPress_Its_Own_Directory.

  7. Chris Lowry
    Member
    Posted 1 year ago #

    I just linked to that above - "set up using htaccess and an index file in root". That's the method I used.

    It breaks because a blank directory keeps being created.

  8. fonglh
    Member
    Posted 1 year ago #

    Are you using multisite?

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Where is WordPress installed on your domain?

  10. Chris Lowry
    Member
    Posted 1 year ago #

    Hey guys, sorry for the slow reply.

    I am not using multisite. I have briefly had a seperate WPMS install set up in a subdirectory, which I thought could cause the problem, but I have uninstalled that, and my base install is standard WP.

    WordPress is installed in a subdirectory. In the interest of security, lets say its at allaboutchris.org/wordp - its not, but its in a similar directory.

  11. Chris Lowry
    Member
    Posted 1 year ago #

    My hosts have given me the log, saying :

    drwxr-xr-x 2 aachris aachris 4096 Oct 6 17:47 blog/

    The user and group on the folder was your user and group, so it sounds like something within the WordPress is possibly creating the folder.

    Does that help?

  12. Chris Lowry
    Member
    Posted 1 year ago #

    Any ideas guys?

  13. Chris Lowry
    Member
    Posted 1 year ago #

    I could kill them with a cron job every minute, but that's far from ideal...

  14. Chris Lowry
    Member
    Posted 1 year ago #

    Exact same issue here: http://wordpress.org/support/topic/empty-blog-folder-being-created-disrupting-permalink

    Still not resolved. Any ideas guys?

Topic Closed

This topic has been closed to new replies.

About this Topic