On Thu, Nov 17, 2011 at 9:01 AM, Mini IT <[email protected]> wrote:

> Where the trouble pops up is our includes as the browser is now looking
> for 
> http://domain.com/contact/**includes/images/logo.jpg<http://domain.com/contact/includes/images/logo.jpg>instead
>  of where it really is:
> http://domain.com/includes/**images/logo.jpg<http://domain.com/includes/images/logo.jpg>
> In Apache we had this handles by the following rule which worked fine as
> it was only run once:
> RewriteRule ^([a-z0-9-_./]+)/includes/([a-**z0-9-_./]+)$ includes/$2
>
>
While this approach may work, it is very inefficient as all your images
would have multiple URLs (and hence won't cache effectively).  Two
solutions to this issue are:
1. Use absolute links for in your HTML and CSS files (/images/... instead
of just images/...)
2. Put a <base> tag in your HTML (although this will affect *all* relative
links on the page, and hence might break things)

I'd suggest looking in to option #1.
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to