• I’ve installed wordpress in a subdirectory, I then realized that I want to use wordpress for the main site as well, and I uploaded WP to the main directory and went to the installation-url with my browser. I then got the message that WordPress was already installed. Is this due to the installation in the subdirectory? Is this a tricky ting to fix? Do I need to create another database and so on?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You need either a second database or a second database prefix (in your wp-config.php it’s probably listed as ‘wp_’ – You should change that to something else).

    Or… if you don’t need TWO blogs, you could move it out of the subdirectory.

    Thread Starter Sponsra

    (@sponsra)

    Thanks for the quick reply! The thing is, my main site is extremely simple, just a couple of links and a newsfeed, so I wonder if its worth bothering with the database. Is it just a matter och changing the prefix in the wp-config-file in the main direcory? I have no programming-skills whatsoever so if it´s more complicated tha that I´ll just google my way to make a simpel html-site…

    The thing is, my main site is extremely simple, just a couple of links and a newsfeed,

    I’d do an HTML site with semantic markups and meta keywords, description, etc. No database or software upgrades necessary 🙂

    Thread Starter Sponsra

    (@sponsra)

    Thanks!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I’d move the blog from the subfolder to root and make a static front page 🙂 But that’s me 😉

    Thread Starter Sponsra

    (@sponsra)

    Hmm. By moving the blog you mean moving all the content in the subfolder to the root directory? Is it as simple as that? Just move it? What url would the blog get then?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It’s a bit of work, but the benefit is (1) your site looks like your site all the way through and (2) it’s all maintained in WP 🙂

    Lets say you have it installed in http://domain.com/blog and your permalinks work out to be http://domain.com/blog/2010/12/26/postname/ 🙂

    First I’d make my site have a static front page that mimics my current front page. I’d also make a page called ‘blog’ to host my blog posts so the URL would be (for the moment) http://domain.com/blog/blog

    Then either by giving WP it’s own directory (i.e. leave it in blog, but have it PRETEND it’s in root) or by moving WP, I would change the URL to http://domain.com

    Now my main http://domain.com would be my static page. http://domain.com/blog would be the front page of my blog, and http://domain.com/<postnames&gt; would be my posts. Which if you wanted to preface with /blog/ you could do in permalinks. Or I’d just toss in some .htaccess:

    RewriteRule ^blog/(.*)$ http://domain.com/$1 [L,R=301]

    That would redirect my blog posts to the new location, no loss of SEO or traffic.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Two installations on the same directory’ is closed to new replies.