I have Six journals in the same OJS installation

Describe the issue or problem
Currently, I’m working on resolving this issue after encountering the upgrade error to the latest version of OJS beta. Upgrading from ojs-3.3.0-8 LTS to ojs-3.3.0-11 LTS - #6 by rcgillis;

I create this topic it because I am confuse on this topic Restfull_urls, .htaccess, 404 on Administration (Ver. 3.3.0-11) - #4 by Malajlo.

I will eventually use a separate domain for our six journals, which are all in the same OJS installation. I attempted to read the other topics, such as .htaccess and base_url, but some of them are incomprehensible to me.

In config.inc.php

; Base URL override settings: Entries like the following examples can
; be used to override the base URLs used by OJS. If you want to use a
; proxy to rewrite URLs to OJS, configure your proxy’s URL here.
; Syntax: base_url[journal_path] = http://www.myUrl.com
; To override URLs that aren’t part of a particular journal, use a
; journal_path of “index”.
; Examples:
; base_url[index] = http://www.myUrl.com
; base_url[myJournal] = http://www.myUrl.com/myJournal
; base_url[myOtherJournal] = http://myOtherJournal.myUrl.com

; Generate RESTful URLs using mod_rewrite. This requires the
; rewrite directive to be enabled in your .htaccess or httpd.conf.
; See FAQ for more details.
restful_urls = Off

.htaccess

#-php – BEGIN cPanel-generated handler, do not edit
Set the “ea-php74” package as the default “PHP” programming language.
<-IfModule mime_module->
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
<-/ifModule->
#-php – END cPanel-generated handler, do not edit

on my server.

can someone help me on this? 6 journals in a separate domain name like this:
1.journal.net
2.journal.net
3.journal.net
4.journal.net
5.journal.net
6.journal.net

Best Regards,

Darryl

Hi @OJS_Darryl

This thread has the answer to your questions about managing multiple domains in one single OJS installation:

Best,
Israe;

Hello @israel.cefrin ;

Thanks for response!

I don’t understand it because they only deal with one domain, to my knowledge.

I have a one OJS installation but I have a six journals on this Installation.

example:

base_url=“journals.domain.net” (main OJS)

on my six journals I declared the domain name on this:

journal1.domain.net;
journal2.domain.net;
journal3.domain.net;
journal4.domain.net;
journal5.domain.net;
journal6.domain.net;

What is the relationship between config.inc.php and.htaccess in order for multiple domains to work?

then I tried to apply this:

base_url[index]=“journals.domain.net
base_url[Journal1]= “journal1.domain.net
base_url[Journal2]= “journal2.domain.net
base_url[Journal3]= “journal3.domain.net
base_url[Journal4]= “journal4.domain.net
base_url[Journal5]= “journal5.domain.net
base_url[Journal6]= “journal6.domain.net

and the result is below

Screenshot_1

Best Regards;
Darryl

Hi, @OJS_Darryl .

Your base URLs in config.inc.php will need to have the protocol prefixed to the domain name, e.g.:
https://journals.domain.net

Does the protocol appear there?