.htaccess - codeigniter remove index.php gives 404 errore -
i set code in .htaccess under htaccess code , alter in config.php file still gives 404 error please 1 help me find issue in hear link of site http://198.12.149.211/~physrec/
$config['base_url'] = "http://198.12.149.211/~physrec/"; <ifmodule mod_rewrite.c> rewriteengine on rewritebase /ci_intro/ #removes access scheme folder users. #additionally allow create system.php controller, #previously not have been possible. #'system' can replaced if have renamed scheme folder. rewritecond %{request_uri} ^system.* rewriterule ^(.*)$ /ci_intro/index.php?/$1 [l] #when application folder isn't in scheme folder #this snippet prevents user access application folder #submitted by: fabdrol #rename 'application' applications folder name. rewritecond %{request_uri} ^application.* rewriterule ^(.*)$ /ci_intro/index.php?/$1 [l] #checks see if user attempting access valid file, #such image or css document, if isn't true sends #request index.php rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ /ci_intro/index.php?/$1 [l] </ifmodule> <ifmodule !mod_rewrite.c> # if don't have mod_rewrite installed, 404's # can sent index.php, , works normal. # submitted by: elliothaughin errordocument 404 /index.php </ifmodule>
change .htaccess file to,
rewriteengine on rewritecond $1 !^(index\.php|[javascript / css / image root folder name(s)]|robots\.txt) rewriterule ^(.*)$ /index.php/$1 [l] change config file from,
$config['index_page'] = "index.php"; to,
$config['index_page'] = ""; also illustration helpfull, http://snipplr.com/view/5966/codeigniter-htaccess/
php .htaccess codeigniter
No comments:
Post a Comment