Title: Permalink problems with 2nd subdirectorysite
Last modified: August 20, 2016

---

# Permalink problems with 2nd subdirectorysite

 *  [Green machine](https://wordpress.org/support/users/groenecourant/)
 * (@groenecourant)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/)
 * Hello everybody,
 * I’m having problems altering the permalink structure of my 2nd website from the
   default setting to /postname/ . I’m guessing it has something to do with the 
   subdirectory that I installed the second site in.
 * I’ll try and explain my setup:
 * I have 2 sites and both are installed on the same server (separate databases).
   1st site is located in the root directory. (Had the same permalink problem with
   it 5 months ago but a simple htaccess addition solved it)
    2nd site is located
   in a subdirectory with a new wordpress installation. Tried some things with the
   htaccess file but nearly brought my whole site down ;). Got it back up and running
   but i’m out of answers.
 * Anybody got an idea?
 * Thanks in advance,
 * _(P.S) I’m not sure if I get the meaning of a subdirectory right. My 2 sites 
   have completely different urls. So no second.blog.firstblog.com but firstblog.
   com and secondblog.com_

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

 *  [Johnb81](https://wordpress.org/support/users/johnb81/)
 * (@johnb81)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/#post-2777473)
 * Hi green machine,
 * Can you please be more specific? I.e. give us site url’s and what work and doesn’t?
 *  Thread Starter [Green machine](https://wordpress.org/support/users/groenecourant/)
 * (@groenecourant)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/#post-2777510)
 * Well,
 * my main site is this groenecourant.nl and my second site, thus in the subdirectory,
   is [Internationalgreenspectator.com](http://internationalgreenspectator.com/).
 * All the WP-files and what not from my main site are in the public_html folder.
   Then I made a new folder for my second site and installed it there.
 * The problem probably originates there. WordPress is probably not finding the 
   right htaccess to edit when I’m changing my permalinks on my second site. (guessing
   here)
 * You need more information?
 *  [Johnb81](https://wordpress.org/support/users/johnb81/)
 * (@johnb81)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/#post-2777619)
 * Hi Green machine,
 * The .htaccess file of the main root directory WordPress should in no way affect
   the one of the WordPress in the sub directory.
 * How are they configured in the hosting provider? As 2 separate hosts?
 *  Thread Starter [Green machine](https://wordpress.org/support/users/groenecourant/)
 * (@groenecourant)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/#post-2777636)
 * Sorry, I’m probably being to vague.
 * I agree, the problem is probably caused by the htacces file in the subdirectory.
   I tried and used this piece of code. (didn’t work)
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/
   RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond%{
   REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress
 * About the hosting provider. I installed both websites with the same host and 
   in the same server space i bought. That’s why the second website is in a subdirectory.
   Was this a good idea?
 * Thanks for the help
 *  [Johnb81](https://wordpress.org/support/users/johnb81/)
 * (@johnb81)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/#post-2777661)
 * Yes it should not be a problem, though how did you configure them? With which
   hosting provider you are?
 * Did you configure the domains properly to point to each directory etc?

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

The topic ‘Permalink problems with 2nd subdirectorysite’ is closed to new replies.

## Tags

 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Johnb81](https://wordpress.org/support/users/johnb81/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/permalink-problems-with-2nd-subdirectorysite/#post-2777661)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
