htaccess problem

hey again

i`ve a little poblem with the htaccess file.

method 1 doesnt work.

if i take the secound method the url is correct, but my links doestn work.

and if i use method 1 and 2 the links are working but my css/js files doesnt load.

did i somethind wrong?

my url

ps: i think now its working

I don't know much about it.. but solution 3 is working..

with method 3, I still have the index.php/ in my url ...
and with method 2 i get a Internal Server Error
and with method 1 my files ( css/js etc ) doesnt load

Bro, I use this

# Customized error messages.
ErrorDocument 404 /index.php

Options +FollowSymlinks

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

Actually i have two files at root. Index.php and admin.php, So this code works for changing the urls.....

Now my site's root is
and at admin side..

if i use this example i still have the index.php/ in my url ...
dont know why no method is working Sad

are you using anchor function ?? for your links?

[quote author="mohsin917" date="1268413439"]are you using anchor function ?? for your links?[/quote]

yes i do
should i use a "normal" link tag?

Try it with <a href=''> tag.... I was also having the same problem with anchor but not found how to solve it.. Undecided

hay i get it...

replace this in your config.php file

$config['index_page'] = "admin.php";


$config['index_page'] = "admin";

replace it with same name which you are trying to use in htaccess..

then anchor becomes working..

great !

but my css/js/images files still doesnt load

the path is correct, but there`s no css file anymore.
could it be possible that the htaccess rewrite something wrong?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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