php - PHPZend, MVC Web Application and Apache Rewrite issue -


I am in the process of creating an MVC web application using the Zend Framework and I have encountered a strange problem. / P>

If I have the httpd.conf virtualhost section and root the web site. If the Htaccess file is configured in the same manner, then the Apache index.ff file (i.e. www [dot] does not read [my] website [dot] com / fails), the rewrite does not write the log and this error is normal The error log file enters:

  Follow the option SymLinks or SymLinksIfOwnerMatch is off which means that the RewriteRule instructions are forbidden: / hg / software / cims / src However, the same httpd With conf and .htaccess settings, Reine (i.e. www [dot] mywebsite [dot] com / account / login can be obtained from succeeding) and rewrite the log contains lots of information.  

However, if I rewrite the .htaccess command to the directory block under the virtualhost and set the AllowOverride to "none", then it is reverse. Apache reads and displays index.php (i.e. www [dot] mywebsite [dot] com / succeeds), but it does not take me to the login screen and tries to login directly to the login screen (i.e. www [dot] ] Mywebsite [dot] com / account / login fail)

Relevant settings for the first error condition:

httpd.conf:

  RewriteLog / Hg / hgweb / logs / appdev_rewrite.log on RewriteEngine Revival Lago Level 1 & lt; VirtualHost *: 80 & gt; SetEnv ETSSERVER mywebsite SetEnv VHOST appdev SetEnv APPLICATION_ENV Development Server Name Apache Server Alias ​​App Adige MyWebSite.SourcePath / HG / Software / Application / SQL / Public / Document / Hg / Software / Apdev / SQL / Public / Errogram / Hg / HGVB / Log / App Devo_Rar .log Customog / Hog / HGEEB / Lodge / Apdev_ACAR Logic general & lt; Directory / & gt; Option Index Follow-up SIM Links IFOwnerMatch Allow override Allow all orders, deny permission from everyone & lt; / Directory & gt; & Lt; / VirtualHost & gt;  

.htaccess:

rewrite code on rewrite% {REQUEST_FILENAME} -s [OR] revoked code% {REQUEST_FILENAME} -l [OR] rewrite %% REQUEST_FILENAME} -D Rivieraith ^. * $ - [NC, L] Rev. Array ^. * $ Index.php [NC, L]

Any information about what could be causing this is quite commendable.


Comments