Hi, @1) just put them in the public folder, as you do with every other file (css, js, images....) The Rewrite which is used, only rewrites to index.php if there is no file or directory by the same name/path.
@2) see http://www.zendqas.com/17/how-to-remove-public-from-url-in-zf2-application-in-subfolder br Ludwig Am 19.12.2012 13:13, schrieb LoneShooter: > I have two problems with subfolders in ZF2 and I'm sure that they are pretty > common. > > 1) How to add custom non-zf2 script as a ZF2 subfolder (e.g. website > analytics software or just a simple static HTML page)? The problem is that > all request in ZF2 are handled with index.php and I cann't even access the > page or subdirectory, e.g. www.site.com/subfolder/static-page.html > > 2) How to add an ZF2 application as a subfolder of another non-ZF2 website > and access it without "public" part of the URL address? For example, I > created a simple Facebook application and want to access it without public, > e.g. www.site.com/zf2-app/ instead www.site.com/zf2-app/public/ > > I found similar questions here > <http://www.zendqas.com/57/static-html-page-in-zend-framework-2-how> and > here > <http://www.zendqas.com/58/problem-accessing-subfolders-in-zend-framework-2> > but without answers. > > I think that ZF2 is much, much better than ZF1, but these are very common > requirements from my clients I'm not sure how to solve. > > Thanks > > > > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/ZF2-subfolders-problem-tp4658543.html > Sent from the Zend Framework mailing list archive at Nabble.com. > -- Ludwig Ruderstaller http://www.cwd.at -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
