Saturday, 15 September 2012

.htaccess - Apache alias issue with zend when accessed with other than index controller -



.htaccess - Apache alias issue with zend when accessed with other than index controller -

i have created apache alias http://www.domain.com/xyz pointing public folder nowadays in zend application. c:/wamp/www/xyz/public/

it working fine when accessed index controller, when accessed new controller showing server misconfiguration.

working : http://www.domain.com/xyz/ (here alias pointing public folder)

server misconfiguration : http://www.domain.com/xyz/controller2

this error controller2: file c:/wamp/www/xyz/public/controller2.php doesn't exist..

this htaccess code:

rewriteengine on rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^.*$ index.php [nc,l]

i tried rewriterule ^.*$ index.php [nc,l,qsa] , other rewrite rules.

can help me..

do have line in application.ini file?

resources.frontcontroller.baseurl = "/xyz"

apache .htaccess zend-framework

No comments:

Post a Comment