apache 2.2重写规则,只在服务器(内部)使用OJS3将所有请求发送到/index.php/

I am using openjournalsystems.com/ OJS version 3.

To remove /index.php/ from a url like mywebsite.com/index.php/myjournalname/foo/bar/foobar… , you are required to enable in config.inc.php the restful_urls = on.

Once you do that, the urls will be without /index.php/ but wont load pages until you generate RESTful URLs using mod_rewrite.

I tried the following:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

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

I get the error "redirected you too many times" with some error 302 move temporary on network.

Adding [R=301,L] just to see what happens on the address bar url, the /index.php/ is added ok and page loads normally but now am not achieving what I intended to remove /index.php/