Welcome Guest, Not a member yet? Register   Sign In
targeting images and css
#11

[eluser]jvittetoe[/eluser]
sweet bro, sorry i completely overlooked your original post for that fix. htaccess just confuses me, i hardly know what im doing with it.
#12

[eluser]metaltapimenye[/eluser]
thx walesmd.. u make all js/css magic keep alive in CI.

letso if i got sub directory for my css.. let say..

/myFinance
-/application
-/system
-/static
--/css
---/csssub

i got to add csssub at .htaccess files huh?
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|js|images|systems\/plugins|static|csssub|robots\.txt|css\/)
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
#13

[eluser]joe-bbb[/eluser]
Helped me too - and I also overlooked the first post too - thanks
#14

[eluser]senjy[/eluser]
Hi, i have the same problem, but not resolved.

htaccess content :

Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond $1 !^(index\.php|user_guide|static|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

My Static is like here
Quote:static
\blueprint\
\screen.css
\print.css
\ie.css


my view
Code:
&lt;link rel="stylesheet" href="&lt;?php echo base_url(); ?&gt;static/blueprint/screen.css" type="text/css" media="screen, projection"/&gt;
&lt;link rel="stylesheet" href="&lt;?php echo base_url(); ?&gt;static/blueprint/print.css" type="text/css" media="print"/&gt;
&lt;!--[if lt IE 8]>&lt;link rel="stylesheet" href="&lt;?php echo base_url(); ?&gt;static/blueprint/ie.css" type="text/css" media="screen, projection"/&gt;&lt;![endif]--&gt;

and

Code:
&lt;?php
    echo '<br />site_url() --&gt; ' .site_url();
    echo '<br />base_url() --&gt; ' .base_url();
    echo '<br />getcwd() ----&gt; ' .getcwd();
    echo '<br />link path ---&gt;'  .base_url() .'static/blueprint/screen.css';
    die;
  ?&gt;

give me this
Quote:site_url() --&gt; mysite.com/index.php
base_url() --&gt; mysite.com/
getcwd() ----&gt; /mysite.429/clican/www
link path ---&gt;mysite.com/static/blueprint/screen.css

if i go to mysite.com/static/blueprint/screen.css,
firefox display the css content

but when i use firebug, it's display error 404.

I'm using CI 2.0.2 and the autoload have

Quote:$autoload['helper'] = array('url');

What's i missing ?




Theme © iAndrew 2016 - Forum software by © MyBB