My SEO wants me to rewrite index.php to index.html.
The probnlem is that I am using ZEND. When I go to index.php, I lands on my custom exception page, because Zend maybe don't want to understand that some SEO people that are external to PHP don't want to get index.php redirects to an exception page.
I understand Zend wants it all for PHP (And I am waiting them to rewrite an AngularJS version into PHP for Zend3) but.... meanwhile, I am stuck with Zend at the moment, and I can't figure out how I can modify my .htaccess.
At the moment, it looks like this :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
If I add :
RewriteRule ^index.php$ index.html [NC,L]
This breaks Zend.
Do I have to rename my index.php file to zend.php, and then, modify the last line to :
RewriteRule ^.*$ zend.php [NC,L]
Or do I have to write a 1500 line long action helper code to make it the Zend way?