After few tries i found out that

RewriteEngine On

RewriteRule .* index.php

was not working but

RewriteEngine On

RewriteRule .* index.html 

was working, what could be the possible reason? and how can i fix it?

link|improve this question
Do you get the same error when requesting index.php without any rewrite rules set? – beans Feb 2 '11 at 17:49
What happens when domain.com/text – borayeris Feb 2 '11 at 18:15
for first case i get error Internal Server Error for second case i get routed to index.html file – experimentX Feb 2 '11 at 18:15
Are u working on local? – borayeris Feb 2 '11 at 18:15
sure that index.php is working or there's a bug? – Nicola Boccardi Feb 2 '11 at 18:39
show 1 more comment
feedback

2 Answers

up vote 1 down vote accepted

Try(loop free):

RewriteEngine On
RewriteRule ^.*$ index.php [L]
link|improve this answer
thanks your answer was certainly helpful, but could you please modify your code optimized for zend framework .htaccess – experimentX Feb 3 '11 at 4:12
feedback

Try

RewriteEngine On
RewriteRule (.*)$ index.php
link|improve this answer
getting the same error – experimentX Feb 2 '11 at 17:31
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.