.htaccess - Removing the index.php is not working -


i have site , when click on go in center have going url

 http://dev.posnation.com/welcome/redirect 

which not proper page welcome controller , redirect action. proper url

 http://dev.posnation.com/index.php/welcome/redirect 

my codeigniter structure this

-rw-r--r--@  1 tamer  staff   225 apr 11 13:09 .htaccess drwxr-xr-x@ 18 tamer  staff   612 apr  8 17:26 application drwxr-xr-x  11 tamer  staff   374 apr 11 09:46 css drwxr-xr-x@  6 tamer  staff   204 mar 24 14:20 graphics drwxr-xr-x  17 tamer  staff   578 apr 11 09:54 js drwxr-xr-x@ 10 tamer  staff   340 apr  7 12:20 system drwxr-xr-x@ 16 tamer  staff   544 apr  7 12:20 user_guide 

with index.php out 1 directory

my .htaccess consists of this

directoryindex index.php rewriteengine on rewritecond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d 

any ideas

you missed 1 rewrite rule line after rewritecond. try

directoryindex index.php rewriteengine on rewritecond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -