Support » Fixing WordPress » second installation of wordpress on same site

  • Hi
    I have a site running where the main site is Joomla based, I have a blog in a subfolder ( I want to replace the joomla site with a wordpress one (not created yet). My blog, although in a subfolder, the database in located in the root. I’m pretty much a beginner, so I want to do this as simply as possible.
    Can I create a subfolder, install a new version of wordpress there, then have that point to my main site, then simply delete the joomla files?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi!
    You can install WordPress in subfolder and then later point the domain exactly at this folder removing the subfolder name from URL. No matter where the database is as far as the connection with it is correct, it can be even on different hosting.

    Probably, if you will install WordPress in subfolder all settings will be done for you by system, but later, when you will want to move it up, there will be simple setting to change:

    in .htaccess file in this subfolder:

    RewriteBase /subfolder/
    RewriteBase /

    RewriteRule . /subfolder/index.php [L]
    RewriteRule . /index.php [L]

    and URLs in WordPress itself, see more:

    Changing The Site URL

    Thanks Olga, thats’s very helpful

    i have a same problem. thank you olga (@oglekler)

    I think I have made all the required changes, as described in the Changing the Site URL link above. But I still get the following:

    This page isn’t working is currently unable to handle this request.
    HTTP ERROR 500

    My wordpress install is on
    That also then stopped working.

    So I undid all the changes and at least got up and running again.
    I tried installing the Simple website redirect plugin. That doesn’t work either.

    Currently I have only
    blog (a seperate wordpress install that opens in, and does work)

    I have also tried adding this to the htaccess file in the public_html

    RewriteEngine on
    RewriteCond %{HTTPS_HOST} ^(www.)?$
    RewriteCond %{REQUEST_URI} !^/main/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /main/$1
    RewriteCond %{HTTPS_HOST} ^(www.)?$
    RewriteRule ^(/)?$ main/index.html [L]

    Currently that is all that is in the htaccess file. But still is doesn’t redirect, it simply takes me to the index of/ for my main site.
    I also have a an htacess file in the ‘main’ subdirectory. could that be causing issues?
    All help appreciated

    .htaccess file will apply it’s setting to all files in the same folder and deeper until there will be other .htaccess file in subfolder.
    If you have subdomain, it must be pointed in hosting on a folder where you have this site installation and domain itself to folder where it’s site’s root. So, each site must have it’s own .htaccess. And it can be very simple. It don’t have to know what the domain name is to work.
    It looks like now that you attach domain name to wrong folder and possibly you need to attach it to /blog/ subfolder – there is a site after all. Check on your hosting.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.