configure mod_rewrite to allow img, js and css files?
Posted
by ajsie
on Stack Overflow
See other posts from Stack Overflow
or by ajsie
Published on 2010-04-16T16:21:36Z
Indexed on
2010/04/16
16:23 UTC
Read the original article
Hit count: 211
mod-rewrite
|apache
in my .htaccess i've got these lines:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
i tried to include js files with this line:
<script type="text/javascript" src="system/application/media/js/jquery/jquery.js"></script>
but it doesnt work since the rules dont let it pass. it works when i turn the rewrite engine off.
how can i change the rules so it allows url with a /js, /css and /img?
thanks
© Stack Overflow or respective owner