• chris-richard

    (@chris-richard)


    We use a custom CMS for our main site pages but use wordpress in a subdirectory for our blog. We want to add a French version of the blog but the content will be new, not just translated versions of existing English posts.

    I’d like to use wordpress’s multisite functionality, but it seems there is a hard requirement for the main installation to be at the root (not in a subdirectory) which won’t work for us. As far as I can tell, my best option is to have two wordpress installations in different subdirectories. If this is the case, is there any way for my two installations to share the same theme, users, plug-ins, etc. ?

    I’m a bit of a wordpress n00b so any advice is appreciated.

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    If you’re using Multisite, yes. They can use the same theme and same user base.

    But as you noted, you have to install WP in root.

    Why won’t it work for you?

    Thread Starter chris-richard

    (@chris-richard)

    We have a custom CMS installed there and it handles all requests apart from those to /blog, where wordpress is installed.

    Can wordpress “co-exist” at this level and still only handle requests for /blog (and /blog-fr)?

    Michael Clark

    (@planetmike)

    You might be able to have it coexist if (1) none of your other CMS uses the same file names for its files. So in your root directory you’ll have files from both CMSes present; and (2) you’ll have to tweak your .htaccess file. Maybe something like this to handle the WordPress rewrites for the blog directory:

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

    I haven’t tested that, but basically the rewrite rules should pass any URL starting with blog to WordPress, and any other URL to your regular CMS. You’ll need to put the WP rewrite rules above your other CMS rewrite rules in the .htacess. Good luck.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You CAN install WP in a subfolder unless you want to use subDOMAIN sites.
    Just install it in a folder. But watch out for the blog names. See if you install WP in /blog/ then ALL your URLs will be domain.com/blog/sitename (so domain.com/blog/fr)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Two blogs in different subdirectories – Can they share theme, users, etc.’ is closed to new replies.