I use the following:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css|txt|zip|gz|html|xml)$ index.php
to allow actual files/paths of my choosing to be served without using
the framework. Note, if you had a directory that existed but no
'index.php' file to serve, you could be getting the 404 for that
reason.
Hope this helps!
David
On 12/4/06, Troy L. Marker <[EMAIL PROTECTED]> wrote:
Matt,
Thanks for the response. I changed the .htaccess file as your suggested. It,
however, did not help.
Would you happen to have another suggestion?
Regards,
Troy Marker
-----Original Message-----
From: Matthew Ratzloff [mailto:[EMAIL PROTECTED]
Sent: Monday, December 04, 2006 9:13 PM
To: Zend Framework
Subject: Re: [fw-general] Wierd Routing
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php
-Matt
----- Original Message -----
From: "Troy L. Marker" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, December 04, 2006 6:55 PM
Subject: [fw-general] Wierd Routing
> Greetins,
> I have spend the better part of a week trying to my site working online. I
> finially hit the jackpot tonight, only to find another problem.
>
> The problem is for some reason, I am getting 404 pages for most of the
> routes. Let me explain.
>
> http://tronpro.com/ works fine.
>
> http://tronpro.com/index works fine.
>
> http://tronpro.com/services does not work. I get a 404 page.
>
> I am gettin a 404 page for any route that does not relate to index.
>
> I am not sure if this has to do with my Rewrite rules in the .htaccess
> file.
> The rules are:
>
> RewriteCond %{SCRIPT_FILENAME}
> ^/home/content/t/l/m/tlmarker/html/index.php$
> RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
>
> (I just tried removing the RewriteCond line and got the same result.)
>
> I am thinking If it is routing to the index controller, then my rewrite
> rules should be correct. But I am not sure.
>
> If someone can help me with this, I would greatly apreciate it.
>
> Regard,
> Troy L. Marker.
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.6/568 - Release Date: 12/4/2006