Title: 2 wordpress installation on same server
Last modified: August 18, 2016

---

# 2 wordpress installation on same server

 *  Resolved [zetxek](https://wordpress.org/support/users/zetxek/)
 * (@zetxek)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/)
 * I have and old installation of wordpress in the root of the server, at bloqnum.
   com, and I added another installation at bloqnum.com/kurrilera (in its own folder,
   kurrilera).
 * The 1st blog works all OK, but the 2nd one has some issues: permalinks based 
   on the post name (with /post/%postname% as structure) won’t work, they go to 
   the 404 page in the 1st blog, I have to use de default permalink structure. And
   now I installed an AJAX shoutbox in the foldered installation, but when I click
   on the button to send a message it gives me again a 404 error in the 1st blog…
 * What could I do to make the 2nd blog work all OK, any idea?
 * Thanks for reading, and I hope I have been clear enough…

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

 *  [thelazygeisha](https://wordpress.org/support/users/thelazygeisha/)
 * (@thelazygeisha)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531877)
 * The WP installation in the root directory has likely modified your .htaccess 
   file so it can function properly in terms of permalink structure, which is causing
   your other installation not to function because it views the second blog as an
   extention of the first blog based on the first’s permalink structure and .htaccess
 *  Thread Starter [zetxek](https://wordpress.org/support/users/zetxek/)
 * (@zetxek)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531900)
 * Uhm, I also think the problem is in the .htaccess. Will it be technically possible
   to make the two installations coexist, arranging the .htaccess of the root directory?
 * By the way my root .htaccess is the following:
 * # To make the blog appear always without www
    RewriteEngine On RewriteCond %{
   HTTP_HOST} ^www\.bloqnum\.com$ [NC] RewriteRule ^(.*)$ [http://bloqnum.com/$1](http://bloqnum.com/$1)[
   R=301,L]
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On # Redirect FeedBurner
   to your own Feed RewriteBase / RewriteRule ^feedburner_675044/?$ /feed/ [R,L]
   RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$ RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # These Rules
   redirect all feed Traffic to FeedBurner RewriteBase / RewriteCond %{QUERY_STRING}
   ^feed=(feed|rdf|rss|rss2|atom)$ RewriteRule ^(.*)$ [http://feeds.feedburner.com/Bloqnum](http://feeds.feedburner.com/Bloqnum)[
   R,L] RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ [http://feeds.feedburner.com/Bloqnum](http://feeds.feedburner.com/Bloqnum)[
   R,L] RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php [http://feeds.feedburner.com/Bloqnum](http://feeds.feedburner.com/Bloqnum)[
   R,L] # These are the standard WordPress Rules RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531907)
 * Wow – youre screwing things up fast. Knock off messing with .htaccess.
    The problem
   is your 2nd blog needs a unique table prefix – different from the 1st one.
 * Open your wp-config.php from the 2nd blog and find this line:
    `$table_prefix
   = 'wp_'; // Only numbers, letters, and underscores please!`
 * Where you see `wp_`
    change that to something else like `wp1_` Run the install
   file again for your 2nd blog and it will work normally. You can put a separate.
   htaccess file in the subfolder.
 * Now – on your 1st blog you have added info from the 2nd blog in the 1st one’s
   db because of the same table prefix. You can simply delete this info.
    Put a 
   normal .htaccess in the root.
 * You can have as many blog installs as you want to the same db, just change the
   table prefix each time. Also, you can have a different .htaccess for each install.
 *  Thread Starter [zetxek](https://wordpress.org/support/users/zetxek/)
 * (@zetxek)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531930)
 * Uhm, yeah, twice blogs have the same prefix, but they are in different databases(
   wrdp1 and wrdp2, as I installed them with cpanel fantastico scripts and then 
   updated them by myself).
 * As I have them in seperate databases, I thought they should not mess with the
   other installation…
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531933)
 * OK – if you’re sure they are in separate db’s.
    If so, there’s no way to cross-
   info each other, though, unless you were trying to put both blog’s info in the
   root .htaccess.
 *  Thread Starter [zetxek](https://wordpress.org/support/users/zetxek/)
 * (@zetxek)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531948)
 * Yeah, they’re in different databases for sure:
    define(‘DB_NAME’, ‘zetxek_wrdp2’);//
   The name of the database define(‘DB_NAME’, ‘zetxek_wrdp1’); // The name of the
   database
 * The root .htaccess worked OK until I installed the 2nd blog, I didn’t notice 
   any problem. But I don’t know if there can be any misconfiguration with it, due
   to the symptoms I describe (the “pretty” permalinks won’t work and cannot call
   some functions).
 * Anyway, I noticed something extrange. When I change the permalink structure, 
   WordPress is suppossed to create (or modify) the .htaccess in the blog directory,
   right? Because when I changed it, wordpress said the changes were made but it
   made no changes to the file…
 *  Thread Starter [zetxek](https://wordpress.org/support/users/zetxek/)
 * (@zetxek)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-531959)
 * As wordpress was not updating my .htaccess, I’ve done it by hand with the following
   code found at this thread [http://wordpress.org/support/topic/93953?replies=6](http://wordpress.org/support/topic/93953?replies=6):
 * <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase /folder/ RewriteCond %{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /folder/
   index.php [L] </IfModule>
 * And it’s solved now, at least it seems at the moment.
 *  [arxyash](https://wordpress.org/support/users/arxyash/)
 * (@arxyash)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-532011)
 * I’ve same problem in installation 2 WP in 1 server, i think the problem is in.
   htaccess. Permalink with domain.com/%post%/ doesn’t work, it only work at default.
   How to repair it to make it work with permalink domain.com/%post/.
 * I’v try to replace with
 * <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase /folder/ RewriteCond %{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /folder/
   index.php [L] </IfModule>
 * it still doesnt works.
 * Thx.
 *  Thread Starter [zetxek](https://wordpress.org/support/users/zetxek/)
 * (@zetxek)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-532024)
 * I solved it with this code in the root .htaccess:
    # To make the blog appear 
   always without www RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.bloqnum\.com
   $ [NC] RewriteRule ^(.*)$ [http://bloqnum.com/$1](http://bloqnum.com/$1) [R=301,
   L]
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On # Redirect FeedBurner
   to your own Feed RewriteBase / RewriteRule ^feedburner_675044/?$ /feed/ [R,L]
   RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$ RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # These Rules
   redirect all feed Traffic to FeedBurner RewriteBase / RewriteCond %{QUERY_STRING}
   ^feed=(feed|rdf|rss|rss2|atom)$ RewriteRule ^(.*)$ [http://feeds.feedburner.com/Bloqnum](http://feeds.feedburner.com/Bloqnum)[
   R,L] RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ [http://feeds.feedburner.com/Bloqnum](http://feeds.feedburner.com/Bloqnum)[
   R,L] RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php [http://feeds.feedburner.com/Bloqnum](http://feeds.feedburner.com/Bloqnum)[
   R,L] # These are the standard WordPress Rules RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 * And this one in the folder of the 2nd wordpress:
    <IfModule mod_rewrite.c> RewriteEngine
   On RewriteBase /folder/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /folder/index.php [L] </IfModule> Note: you have to change folder
   for the folder’s name where you have installed the 2nd wordpress.
 *  [arxyash](https://wordpress.org/support/users/arxyash/)
 * (@arxyash)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-532044)
 * Thx, zetxek. **Its Works.**

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

The topic ‘2 wordpress installation on same server’ is closed to new replies.

## Tags

 * [folder](https://wordpress.org/support/topic-tag/folder/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)
 * [second](https://wordpress.org/support/topic-tag/second/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 4 participants
 * Last reply from: [arxyash](https://wordpress.org/support/users/arxyash/)
 * Last activity: [19 years, 3 months ago](https://wordpress.org/support/topic/2-wordpress-installation-on-same-server/#post-532044)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
