WordPress.org

Ready to get started?Download WordPress

Forums

How do I make my own subfolders within the WP folder? (4 posts)

  1. meamrussian
    Member
    Posted 1 year ago #

    Quick question here: I want to install wordpress under the main domain. Will WordPress allow me to make my own subfolders within the main directory? For example, if I want to set up a shopping script that is unrelated to wordpress, I'd install it in its own folder.

    In other words, wordpress would be under wordpress.com, and separate script will be in wordpress.com/script/. How do I do this? Can I do this already by default, or will I need to edit the htaccess file or something?

    Let me know,
    Thanks.

  2. patv
    Member
    Posted 1 year ago #

    If I understand correctly, this is the file structure you want to achieve:

    root/wp-content/
    root/wp-includes/
    root/wp-admin/
    root/shop/

    Yes, this is possible without any modifications to WordPress. WordPress does not look/validate for files that it doesn't need, so you wouldn't be breaking the CMS build by adding your extra folder.

    However, realize that this new folder is out of the scope of WordPress, so don't expect it to have access to WordPress functionalities (someone correct me if I'm wrong here).

  3. meamrussian
    Member
    Posted 1 year ago #

    That's exactly what I meant, thank you. That's great news. I was worried some htaccess or other settings would prevent me from doing this.

    Thank you! I'll give it a try.

  4. patv
    Member
    Posted 1 year ago #

    Oh well, as far as .htaccess files go, I've been able to accomplish this in the past with a WordPress installation having no .htaccess. If you've set up your installation with an .htaccess, then I'm not sure if you'd need to create a routing rule or not.

Topic Closed

This topic has been closed to new replies.

About this Topic