WordPress.org

Forums

How do I install to achieve this subfolder structure (9 posts)

  1. fncll
    Member
    Posted 1 year ago #

    I'd like to have a site where:

    mysite.com/wp (or something similar) houses the wordpress code (so that it's not cluttering up my home directory and I can have a non-wp homepage)

    and I can have network wp sites with urls like
    mysite.com/foo/
    mysite.com/bar/

    But if I install into /wp/ then all my network sites end up as
    mysite.com/wp/foo/
    mysite.com/wp/bar/

  2. W.P. Ginfo
    Member
    Posted 1 year ago #

    Keep it slightly simpler...

    1. Install in the root / homedirectoy ...mysite.com
    2. create / use your non-wp homepage; [assuming this is a static page]
    3. Dashboard > theme options > choose 'static homepage' and select the required page you created
    4. create the subfolder structure you require

    Tip:
    First try a simple static page and one subfolder to test if the outcome meets your needs.

    Alternatively you may want to explore the options available called 'permalinks' to make 'easier urls'
    >> Dashboard > settings > permalinks

  3. fncll
    Member
    Posted 1 year ago #

    Thanks, but I might have been unclear. The home page(s) are not and cannot be WP pages as they are managed by a different system!

  4. W.P. Ginfo
    Member
    Posted 1 year ago #

    I expected it would be easy to enter an external url to use as a homepage. Appearantly it's not as easy as I thought; sorry.

    Plugins like these [search for 'external page'] might do the trick:

    • 'Page Links To'
    • 'ELI's SHORTCURL Shortcodes to Fetch and Parse External Content'

    Let me know how you're getting on..?

  5. jkhongusc
    Member
    Posted 1 year ago #

    > Thanks, but I might have been unclear. The home page(s) are not and cannot be WP pages as they are managed by a different system!

    WP can be installed into an existing web site without interferring with the existing site's content; but you would need to install some WP files (index.php and .htaccess) in the root dir to do what you want.

    https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  6. fncll
    Member
    Posted 1 year ago #

    Yes, I'm aware of those instructions, and can do (and have done) that to deal with the home directory... but they do not address the presence of the subdirectory name in the secondary sites (other sites than the root).

    As I said:

    and I can have network wp sites with urls like
    mysite.com/foo/
    mysite.com/bar/

    But if I install into /wp/ then all my *network* sites end up as
    mysite.com/wp/foo/
    mysite.com/wp/bar/

  7. W.P. Ginfo
    Member
    Posted 1 year ago #

    Have you triesd setting up 'permalinks' yet?
    It will allow you to 'prettify'your urls, and get rid of the 'path' in it.

  8. fncll
    Member
    Posted 1 year ago #

    Yes, permalinks do not offer a solution to this problem.

  9. W.P. Ginfo
    Member
    Posted 1 year ago #

    Would instead of using subfolders like,

    mysite.com/foo/
    mysite.com/bar/

    , a [set of] 'subdomain[s]' be acceptable, either for the wp-site or the others?

    'foo.myite.com'
    'bar.mysite.com'

Topic Closed

This topic has been closed to new replies.

About this Topic