RewriteCond %{REQUEST_URI} !^/static
like this in template : <img src="/static/images/hello.gif" ... />
On Sun, Jun 14, 2009 at 1:54 PM, Monty808 <[email protected]> wrote:
>
> Hi,
>
> Below is my htaccess file for webpy
>
> How do a ad a line for rewriting of the static folder? I get a 404
> error when trying to find the static files...
>
> Thanks
>
>
>
>
> <IfModule mod_rewrite.c>
> RewriteEngine on
> RewriteBase /
> RewriteCond %{REQUEST_URI} !^/icons
> RewriteCond %{REQUEST_URI} !^/_include
> RewriteCond %{REQUEST_URI} !^/favicon.ico$
> RewriteCond %{REQUEST_URI} !^(/.*)+index.py/
> RewriteRule ^(.*)$ index.py/$1 [PT]
> </IfModule>
> >
>
--
百才招聘(baicai.com).产品部
Email: [email protected]
Gtalk: [email protected]
twitter.com/qichangxing
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---