Remove index.php from url

Hi , all
plz i need help
my OJS 3.1.1 installed in subdomain (journal folder) it was ok with all pages Dashboard and user.
I moved all files from (journal folder) to outside this folder .
my wordpress url is http://www.mydomain.com
my subdomain journal is http://journal.mydomain.com/index.php/BajoAgSc
how remove index.php (and BajoAgSc if possible) from url ?
i try to add .htaccess file

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

and change restful_urls = Off to restful_urls = ON in file config.inc.php
but don’t success .
is there any method to change shorter path by move journal files

What exactly happens with that .htaccess configuration?

Hi , ctgraham
When i add .htaccess to my local server with OJS 3.1.1 everything its ok
image
but with my online server error appear don’t open subdomain journal

What is the server error that is recorded in your Apache error log?