I installed 2.4.1 under the root directory as /home/mydomain/www/ojs
my config url settings are as follows:
- Code: Select all
base_url = "http://www.mydomain.org/ojs
base_url[index]= http://mydomain.org
base_url[journal] = http://www.mydomain.org/journal
my .htaccess file in root directory is this:
- Code: Select all
#Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Use this set of 3 lines for each of your journals
RewriteCond %{SERVER_NAME} ^www.mydomain.org
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/journal/$1 [L]
# Use this set of 3 lines to allow access to the site level
RewriteCond %{SERVER_NAME} ^www.mydomain.org
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/index/$1 [L]
The URL setting in configure file seem to work, because I can see various links on the journal page has changed to expected format, for example, the link for journal ABOUT is http://www.mydomain.org/journal/about. The problem is when links are clicked, I received 500 error.
Could someone take a look at my code to see where the problem is? Thank you very much!
