[OJS 3] Test server - REST urls not working... again

Hello all,

I’m trying to enable RESTFUL urls on a testing/development server for OJS 3.
Apache is 2.4.
Document root is /var/www.
OJS 3 is in /var/www/ojs3.

I’ve read many posts on the subject, but nothing solves the problem, yet…

Rewrite rules are working, but OJS is not finding the pages.

Index page is loading like this:


; The canonical URL to the OJS installation (excluding the trailing slash)
base_url = “

; Base URL override settings: Entries like the following examples canbase_url[index] =
base_url[ciinf] =
base_url[inclusao] =
base_url[lalca] =
base_url[liinc] =
base_url[editora] =
base_url[fiinf] =
base_url[p2p] =

; Generate RESTful URLs using mod_rewrite.
restful_urls = On

Apache default sites enabled conf:
(Commented rules are from OJS 2.x server which are working)

<Directory /var/www/ojs3>
AddType application/x-httpd-php .php
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride All
Order allow,deny
allow from all
IndexOptions +Charset=UTF-8
AddDefaultCharset utf-8
Options -Includes -ExecCGI
php_value max_input_vars 900000
php_value upload_max_filesize 60M
php_value post_max_size 60M
php_value memory_limit 1G

            <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(ciinf|cienciadainformacao|inclusao|fiinf|p2p|lalca|liinc|editora|tpbci)(.*)$ /index.php/$1$2 [L]

            #RewriteCond %{REQUEST_FILENAME} !-d
            #RewriteCond %{REQUEST_FILENAME} !-f
            #RewriteRule ^(.*)$ /index.php/index/$1 [QSA,L]
            #RewriteRule /ciinf/index.php/ciinf/index /ciinf [R=301]

            RewriteRule /lalca/(.*) http://lalca.acv.ibict.br/$1 [R=301]

            # For Apache < 2.2
            #RewriteCond %{REQUEST_FILENAME} !-d
            #RewriteCond %{REQUEST_FILENAME} !-f
            # For Apache 2.2 and greater
            RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
            RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
            # Do not rewrite URI with /index.php/ as a path component
            RewriteCond %{REQUEST_URI} !^.*/index.php/.*$
            # Rewrite non-file, non-directory URLs to OJS's index.php
            RewriteRule ^/ojs3/(.*)$ /ojs3/index.php/$1 [QSA,L]


Hello all,

Unfortunately, I cannot make RESTful URLs work on the testing server. Disabled from Apache and OJS configuration. Now OJS is working…