• Resolved liquid8

    (@liquid8)


    I am trying to install another WordPress-site on my server.

    I already have one WP installed to root (public_html-folder). So inside this folder is folders wp-content, wp-admin etc).
    Now I have uploaded a new WP-version to public_html/uusi -folder.
    In that folder I have .htaccess-file which has the following content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /uusi/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /uusi/index.php [L]
    </IfModule>

    # END WordPress

    Now when I am trying to start the installation by opening the page:
    mydomainname.com/uusi/wp-admin/install.php
    It opens the main-wordpress-site with a message “Page not found”.
    How can I tell for the “uusi”-folder’s WordPress that it needs to open this installation of WP, not the installation in the root? I thought that this should do it: RewriteBase /uusi/
    But obviouslu I am missing something.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You do not need that htaccess rewrite to get to mydomain.com/uusi/index.php. That will come into play later. So, rename that htaccess to htac-cess to disable it and try again. I do not remember how much later I added that for my own sub-domain, but I do know I got started without it.

    g.

    (@morrisgraeme)

    Hi, A few things…

    1. Are you using a domain to point to your subfolder?
    2. Is the new install significant to the parent location install? Like does the parent (public_html) installation link within the child location (public_html/uusi) install?
    3. Like, what is the purpose for the new install? Is it merely a new site or a subsidiary or a subdomain of the main site?
    4. Have you considered setting up a multisite/network? See Create A Network
    5. You could consider creating a subdomain location for that folder, kind of like subdomain.mydomain.com/ – point it to the folder and then install using: uusi.mydomain.com/wp-admin/install.php

    There are so many options, it really depends on the goals you have in mind.
    Cheers.

    Thread Starter liquid8

    (@liquid8)

    Hi,

    Thank you both for comments.
    I had to do something to this quick and because I could not make it work I decided to move the original site also to a subfolder. After this everything worked fine. The reason for two wp-installs in the same server is because I have the production site in use (was in the public_html-folder) and I am now making a new version of the to that uusi-folder which will later become the production-version.

    Cheers

    g.

    (@morrisgraeme)

    Cool. So it’s all working? With 2 subfolders then?

    Thread Starter liquid8

    (@liquid8)

    Yeah 🙂 With two subfolders.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Another installation of WP to a subdirectory’ is closed to new replies.