WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Install in Root, Access through a folder, within a URL (6 posts)

  1. fas.khan
    Member
    Posted 2 years ago #

    Hi all,

    I am using WordPress new version with multisite enabled.

    I've this requirement that I can only install WordPress in the root but only can have the URL with /yoursite.

    So, my site has to be installed at root:- http://www.thisurl.com

    but I can only access it at http://www.thisurl.com/yoursite

    How can I do that? I'm not allowed to install wordpress in a 'yoursite' directory. I have to do something within the code, DB or htaccess to make this happen by adding a directory name with the URL.

    I'll be very thankful if you can help me in any way.

    Thanks a lot

  2. Only way to do it is make thisurl.com a static front page, and make a subsite for /yoursite and use that as a blog.

    Multisite does not work if you try to run it out of a folder it isn't installed in.

  3. fas.khan
    Member
    Posted 2 years ago #

    Thanks a lot Ipstenu. I'll definitely give it a try.

  4. fas.khan
    Member
    Posted 2 years ago #

    Thank you Mika,

    I went through your suggestion and created a front static page which redirects to the /news/ site.

    The only slight problem here now is that I use domain mapping for the URLs through which I'll be creating alternative URLs.

    I'm not able to set it up.

    I think this is because it requires WordPress files to be in the root. May be I'm missing something. I'll be very thankful if you can help me here too.

    Thanks.

  5. You should have installed WP in root, though. Like you said you did:

    So, my site has to be installed at root:- http://www.thisurl.com

    If WP is installed in 'thisurl.com' you're fine.

    If you're trying to put the files in thisurl.com/wp/ but have it run out of thisurl.com, it won't work at all.

    If you have thisurl.com/news as a site, then install domain mapping at thisurl.com, and map news. It'll work.

  6. fas.khan
    Member
    Posted 2 years ago #

    Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Topic