> Does that help clarify things? The main thing to understand is that the
> rules mean: "serve the file if it exists, otherwise use the ZF MVC."
That certainly helps. A little bit more reading on my part, and I'd say a
slightly more novice pseudo code of those 6 lines are:
Switch on mod_rewrite
IF url is a non-empty file OR a symlink OR a directory THEN
rewrite the url to exactly the same and stop here
ENDIF
Rewrite everything to index.php
Another way to do this would, I suppose, be:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-s [AND]
RewriteCond %{REQUEST_FILENAME} !-l [AND]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [NC,L]
Thanks,
GTG
没有评论:
发表评论