Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkopQjsACgkQ7bkAtAithuuNfACgv0jcodCl5x9anlsdDAdn4z2G
0msAoNNkk8KKLh2eB+qCceFVsOV0HBC5
=u00j
-----END PGP SIGNATURE-----
iceangel89 wrote:
> hmm thanks, what do i have to put in my htaccess file?
>
> hmm say the structure i have is
>
> /application
> /public
> /static < for my static pages i think? will this be good?
> /library
>
>
If you use the currently recommended rewrite rules (as generated by
Zend_Tool)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Then any file/directory/symlink that actually exists under the document
root will be served directly. So you can just create real files under
/public and they will be server as normal. (ie. public/test.html =>
example.com/test.html)
--
Brenton Alker
PHP Developer - Brisbane, Australia
没有评论:
发表评论