2009年6月5日星期五

Re: [fw-mvc] Site with alot of Static pages

Great, you can add them into static if you want to access them like:

site.tld/static/yourfile.html

if you prefer to access like:

site.tld/static/yoursth/

you should create folder into static and add index.html staic file, and do
that for each page, it's up to you to decide (assuming that apache is set
for index.html to bdef...blabla)

For htacces I guess defauult one will be goo enough

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php

Try and give us your feedback.

Regards,
Sasa Stamenkovic.


iceangel89 wrote:
>
> hmm thanks, what do i have to put in my htaccess file?
>
> hmm say the structure i have is
>
> /application
> /public
> /static < for my static pages i think? will this be
> good?
> /library
>
>
>
> umpirsky wrote:
>>
>> Hi.
>>
>> Yu can just make new folders inside you webroot and put html files in it
>> and access them directly without Zend MVC. Just put what is needed into
>> your htacess file.
>>
>> Regards,
>> Sasa Stamenkovic.
>>
>>
>> iceangel89 wrote:
>>>
>>> i have a site with alot of static pages, i find that if i want to use ZF
>>> for it, i will have to create alot of Controller actions then have all
>>> the static content in the phtml view file. is this the only way?
>>>
>>
>>
>
>

--
View this message in context: http://www.nabble.com/Site-with-alot-of-Static-pages-tp23886272p23886580.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: