• Resolved KaufLive

    (@kauflive)


    Hello everyone!

    I have a question. I recently installed a second wordpress on my URL (it’s a separate product). Everything is working perfectly, until I remembered I had to change the permalinks on my secondary blog. I did this on my first blog already without problem (permalink settings and htaccess).

    Problem is, after changing the permalink settings in my secondary wordpress, it gives 404 errors, redirecting me to my original wordpress install (including the menu bar of that installation). The (only) htaccess on my server is in the root, and that one has already been changed. Is there anything I have to add there to also change permalinks for my secondary site?

    In short: originalsite.com/contact (works)
    originalsite.com/secondairysite/contact (doesn’t work, gives me 404 of the original site)

    Am I missing something really simple or do I have to create a secondary htaccess? Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Valet

    (@wpvalet)

    Hey there,

    If they are both separate installs, you will have separate .htaccess in the root of the install.

    So for your first install, the .htaccess will be in root and for second in the secondarysite folder

    But again, if you use this approach, you might run into issues when you use categories in your first site.

    For example you have mainsite.com and mainsite.com/secondsite

    Now you create a directory on mainsite.com as secondsite and the link becomes mainsite.com/secondsite (same as your second WordPress site) it will create problems and you will face a lot of issues.

    Its better to run a subdirectory multisite if you want to use this in such a way !

    Cheers, PC

    Thread Starter KaufLive

    (@kauflive)

    PC, thank you very much for your help!! It worked out perfectly, only I had to do one more change (after some trial and error), so if anybody else ever has this problem, this is how I fixed it:

    Like PC said, put a new .htaccess file in the directory of your secondary site. But change one thing in the text (in that .htaccess):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /SECONDARYSITEFOLDER/index.php [L]
    </IfModule>
    # END WordPress

    Of course, change ‘secondarysitefolder’ to the name of the folder you’re using. Now it’s working without any problems!

    So thank you again, PC!

    Valet

    (@wpvalet)

    Yay, glad to help KaufLive ??

    Please mark this as resolved if its fixed !

    Cheers

    Thread Starter KaufLive

    (@kauflive)

    I will ??

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘change permalinks for secondary WP install’ is closed to new replies.