thank you for that it's work fine :)

On Tue, Mar 17, 2009 at 1:24 PM, vadim gavrilov <vadim...@gmail.com> wrote:

> Please use the recommended RewriteRules from the manual:
>
>    RewriteEngine On
>    RewriteCond %{REQUEST_FILENAME} -s [OR]
>    RewriteCond %{REQUEST_FILENAME} -l [OR]
>    RewriteCond %{REQUEST_FILENAME} -d
>    RewriteRule ^.*$ - [NC,L]
>    RewriteRule ^.*$ index.php [NC,L]
>
> This rule basically says that if the file exists on the server, serve
> it; otherwise, go to the MVC.
>
>
> On Tue, Mar 17, 2009 at 1:19 PM, mohmmad jarwan 
> <mohmmadjar...@gmail.com>wrote:
>
>> ok that error show from zend because zend conceder any thing after host is
>> a controller or i do something wrong??
>>
>> On Tue, Mar 17, 2009 at 1:14 PM, Giuliano Riccio <
>> ricciogiuli...@gmail.com> wrote:
>>
>>>
>>> Sorry, I didn't notice that you added "/downloads" already
>>>
>>> Giuliano
>>>
>>> Giuliano Riccio wrote:
>>> >
>>> > Add "download.php" to the RewriteCond:
>>> >
>>> >     RewriteCond %{REQUEST_URI}
>>> >
>>> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js|download\.php)
>>> >
>>> > This way the request is not managed by the framework ;)
>>> >
>>> > Giuliano
>>> >
>>> >
>>> > mom_maj wrote:
>>> >>
>>> >> hi all.
>>> >>
>>> >> i have download page in public in folder name downloads
>>> >> (public/downloads/download.php) and i make a virtual host name my,
>>> >> if call page like http://my/downloads/download.php it give me an
>>> error
>>> >> like:
>>> >>
>>> >> *Fatal error*: Uncaught exception
>>> 'Zend_Controller_Dispatcher_Exception'
>>> >> with message 'Invalid controller specified (downloads)' in
>>> >>
>>> /var/www/html/chilimob/library/Zend/Controller/Dispatcher/Standard.php:241
>>> >> Stack trace: #0
>>> /var/www/html/web/library/Zend/Controller/Front.php(934):
>>> >>
>>> Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
>>> >> Object(Zend_Controller_Response_Http)) #1
>>> >> /var/www/html/web/public/index.php(75):
>>> Zend_Controller_Front->dispatch()
>>> >> #2
>>> >> {main} thrown in *
>>> >> /var/www/html/web/library/Zend/Controller/Dispatcher/Standard.php* on
>>> >> line *
>>> >> 241*
>>> >>
>>> >> it think the downloads  folder a controller .
>>> >>
>>> >> *my vhost is :* i make rule to what folder can enter i add downloads
>>> to
>>> >> them
>>> >>
>>> >>
>>> >> NameVirtualHost *
>>> >> <VirtualHost *>
>>> >>       ServerAdmin webmas...@localhost
>>> >>
>>> >>        DocumentRoot /var/www/web/public/
>>> >>        ServerName my
>>> >>
>>> >> <IfModule mod_rewrite.c>
>>> >> RewriteEngine On
>>> >>
>>> >> RewriteCond %{REQUEST_URI}
>>> >>
>>> !^(/index\.php?|/images|/downloads|/images/img/uploads|/upload|/upload/audio|/JS|/CSS|/robots\.txt|/favicon\.ico|/tagcloud\.swf|/swfobject\.js)
>>> >> RewriteRule ^(.*)$ /index.php/$1 [L]
>>> >> </IfModule>
>>> >>
>>> >> </VirtualHost>
>>> >>
>>> >>
>>> >> can any one help me to solve it ( to can call page like
>>> >> http://my/downloads/download.php)
>>> >>
>>> >> note: if i call it like that it's ok:
>>> >> http://localhost/web/public/downloads/download.php but i need to make
>>> >> vhost
>>> >> not call it like that
>>> >>
>>> >> * Please** help me*   *:(*
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22556952.html
>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>
>>>
>>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>

Reply via email to