htaccess problem

how you are accessing the css/js files? can I see the code.

<link rel="stylesheet" href="<?php echo base_url();?>style.css" type="text/css" media="screen" />

i have it!

now it`s working.

my htaccess
# Customized error messages.
ErrorDocument 404 /index.php

# Set the default handler.
DirectoryIndex index.php

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]

and my config
$config['index_page'] = "";
$config['uri_protocol']    = "REQUEST_URI";

thanks so much for your help Wink

and what is the root of your css/js files..?


&lt;link rel="stylesheet" href="&lt;?php echo base_url();?&gt;style.css" type="text/css" media="screen" /&gt;

this code your files should be at root.

my css file is in my root directory
my image files in root/images
my js files root/js

well it should work .... not making any sense..

open your page source of browser if you are using the firefox.. and click at your files css/js...

check if it is opening the clicked file... for making sure that path is correct...

it`s working perfect Wink

really thanks

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.