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
my subdomain journal is
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
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
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?