Welcome Guest, Not a member yet? Register   Sign In
mod_rewrite problems!
#1

[eluser]taschentuch[/eluser]
hi i have a problem with the mod_rewrite rules!

here my .htaccess:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|assets|images|emoticons)
RewriteRule ^(.*)$ /index.php/$1 [L]

my problem now:

when i open http://localhost/ my design works... but when i got to http://localhost/index/article is my design broken... my *.css will not load this mod_rewrite rule blocks the loading from the css files

plz help me

thx a lot =)

edit: sry wrong forum pls move to the right
#2

[eluser]khagendra[/eluser]
create a .htaccess file and add the following lines in the file
Code:
RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

    RewriteCond %{SERVER_PORT} !^443$

—-You can use notepad to create .htaccess file.
—- keep this file at the location of codeigniter index.php(i.e. in the root folder)

open config\config.php and set index_page to empty to hide the index.php in url like this

Code:
$config['index_page'] = "index.php";
#3

[eluser]taschentuch[/eluser]
thx but this doesnt solve my problem have it now self solved:

have changed

Code:
<link rel="stylesheet" type="text/css" href="assets/frontend/modernblue/css/style.css" />

to

Code:
<link rel="stylesheet" type="text/css" href="<?php base_url();?>/assets/frontend/modernblue/css/style.css" />




Theme © iAndrew 2016 - Forum software by © MyBB