Welcome Guest, Not a member yet? Register   Sign In
htaccess problem
#11

[eluser]mohsin917[/eluser]
how you are accessing the css/js files? can I see the code.
#12

[eluser]ChristopherDosin[/eluser]
with
Code:
<link rel="stylesheet" href="<?php echo base_url();?>style.css" type="text/css" media="screen" />
#13

[eluser]ChristopherDosin[/eluser]
i have it!

now it`s working.

my htaccess
Code:
# 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]
</IfModule>

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

thanks so much for your help Wink
#14

[eluser]mohsin917[/eluser]
and what is the root of your css/js files..?

with

&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.
#15

[eluser]ChristopherDosin[/eluser]
my css file is in my root directory
my image files in root/images
my js files root/js
#16

[eluser]mohsin917[/eluser]
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...
#17

[eluser]ChristopherDosin[/eluser]
it`s working perfect Wink

really thanks




Theme © iAndrew 2016 - Forum software by © MyBB