Single journal clean url

Hi everyone. Thanks to great OJS 3
Actually I am new to ojs, please someone help me how I can use clean urls on my site.
I have a single journal name AJEM. The domain address is ajem.ir . How I can have the address ajem.ir instead of ajem.ir/index.php/ajem . I saw all topics but it didn’t help me. please tell me how can I edit the config.inc.php and .htaccess files?

my config.inc.php setting:
restful_urls = on
base_url[index] =ajem.ir/index
base_url[ajem] = ajem.ir

my .htaccess setting:
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]

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

2 Likes

Hi @jshosseini

Take a look in this topic, it has an approach in how to clear OJS url for a single journal:

Best
Israel Cefrin
Public Knowledge Project Team