Lodius2000 Posted February 20, 2009 Share Posted February 20, 2009 Im doing the zend tutorial, it tells you what rewrite code to use, but I dunno if the [OR] in the code means "user should use one of the 3", or if it is an actual instruction to apache RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /index.php [NC,L] ZF tutorial in question: http://framework.zend.com/docs/quickstart/create-a-rewrite-rule Quote Link to comment Share on other sites More sharing options...
corbin Posted February 21, 2009 Share Posted February 21, 2009 As for what -s/-l/-d mean: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond Scroll a little bit. OR just combines lines with OR logic as opposed to AND. And yes, it is an actual instruction to Apache. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.