• 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)
  • 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

    (@groenecourant)

    Well,

    my main site is this groenecourant.nl and my second site, thus in the subdirectory, is 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?

    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

    (@groenecourant)

    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

    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.