Please, How To Direct Single Journal To Web Root (http://journalpage.com) instead of (http://journalpage.com?index.php/ojs)

Hi All,

We’ve struggled with a single journal site with pretty URLs for ages, tried various solutions posted in this thread and other places but had lots of errors all over the place.

Here’s what currently works best for us, haven’t had any error so far:

Site: https://ijpds.org
Journal Name: ijpds

Apache rewrite config:

    RewriteEngine on

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^/index/(.*)$ /index.php/index/$1 [L]

    RewriteRule "^\/$" "/index.php/ijpds/" [PT]

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !api/v1/
    RewriteRule ^(.*)$ /index.php/ijpds/$1 [QSA]

OJS conf file snippets:

base_url = “https://ijpds.org
base_url[index] = https://ijpds.org/index
base_url[ijpds] = https://ijpds.org
restful_urls = On

It’d be nice to hear from others what they had to do! :slightly_smiling_face: