I posted something in response to an SSL redirect question a couple of
days ago. My .htaccess file should accomodate css, js, and img out of
the box when your public folder structure looks like:

/cs
/img
/js
index.php
...

.htaccess:

RewriteEngine On
RewriteRule ^.*/css/(.*)$ css/$1
RewriteRule ^.*/images/(.*)$ images/$1
RewriteRule ^.*/js/(.*)$ js/$1
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

Again, this will reroute any request for css, images, or javascript to
the css, js, and img folder relative to where .htaccess is regardless
of how many parameters or how deep your URI goes. Cheers.
--
Chris Weldon

On Tue, Jan 27, 2009 at 12:41 PM, dele454 <[email protected]> wrote:
>
> Thanks for the feedback Matthew. That is exactly how my rewrite look like
> line for line. Not working still. Any other possible leads?
>
> Thanks
>
> -----
> dee
> --
> View this message in context: 
> http://www.nabble.com/Some-widget-issues-tp21686243p21691624.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>



-- 
Christopher Weldon
http://chrisweldon.net
[email protected]

Reply via email to