showScriptName=false gives not found error while removing index.php


I am trying for couple of hours to solve problem, but unable to do so am doing something wrong?

My .htaccess

Options +FollowSymLinks

IndexIgnore /

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond $1 !^(index\.php)

RewriteRule ^(.+)$ index.php?$1 [PT,L,QSA]

When i turn showScriptName=false gives Not Found Error


I’m using this one as the default with showScriptName=false (but with urlFormat=path) and it works.

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

I am using this one

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php

Thanks for reply,

Not working in mod_write logs its shows assets related error, I am surprised