Yes, but it's strange that the RewriteCond is not working.

Giuliano

mom_maj 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.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-to-call-folder-with-virtual-host-in-zend-framwork-tp22556010p22557125.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to