奇怪的WordPress index.php里面的所有链接

I installed several WordPress servers before but this is the first time I encounter this issue, where all the links must have 'index.php' in the URL (i.e. instead of test.com/games it is test.com/index.php/games), I searched for several issues and there was a similar thread here: Remove index.php from Wordpress URLs but it didn't give an answer to my problem

HYG some details from my server:

1) mod_rewrite is enabled

2) I have a virtual host configuration:

# domain name: test.com 
# public: /var/www/test.com 
# Admin email, Server Name (domain name) and any aliases 
ServerAdmin test@gmail.com 
ServerName test.com 
ServerAlias www.test.com 
# Index file and Document Root (where the public files are located) 
# DirectoryIndex index.php 
DocumentRoot /var/www/test.com 
# Custom log file locations 
LogLevel warn 
ErrorLog /var/log/apache2/error-test.com.log 
CustomLog /var/log/apache2/access-test.com.log combined 

3) And I have .htaccess as follows:

Options FollowSymLinks 
AllowOverride All
# BEGIN WordPress 
RewriteEngine On 
RewriteBase / 
RewriteRule ^index.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
# END WordPress

4) The WordPress directory permissions are rwsr_xr_x and its files are rwx_r__r__ (owner www-data:www-data)

5) Permalinks configuration is /%year%/%monthnum%/%day%/%postname%/

I am not familiar with the .htaccess format so perhaps it needs to be adjusted some how, please advise?

The normal wordpress .htaccess is a follows

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L] //you aren't escaping in your example
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress