• Hi
    I have a site running where the main site is Joomla based, I have a blog in a subfolder (colinmunrophotography.com/blog). 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?

    • This topic was modified 4 years, 10 months ago by Jan Dembowski.

    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/
    to
    RewriteBase /

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

    and URLs in WordPress itself, see more:

    Changing The Site URL

    Thread Starter colindm

    (@colindm)

    Thanks Olga, thats’s very helpful

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

    Thread Starter colindm

    (@colindm)

    Hi
    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 colinmunrophotography.com is currently unable to handle this request.
    HTTP ERROR 500

    My wordpress install is on
    main.colinmunrophotography.com
    That also then stopped working.

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

    Currently I have only
    .well-known
    cgi-bin
    blog (a seperate wordpress install that opens in colinmunrophotography.com/blog, and does work)

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

    RewriteEngine on
    RewriteCond %{HTTPS_HOST} ^(www.)?colinmunrophotography.com$
    RewriteCond %{REQUEST_URI} !^/main/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /main/$1
    RewriteCond %{HTTPS_HOST} ^(www.)?colinmunrophotography.com$
    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)
  • The topic ‘second installation of wordpress on same site’ is closed to new replies.