url - .htaccess related codeigniter. why error 404 page not found? -


befor add website hosting used xampp, caller url :

http://localhost/myci/folderadmin/controller/ 

in xampp use htaccess file:

    options -indexes  <ifmodule mod_rewrite.c>   rewriteengine on   rewritebase /    rewritecond %{request_uri} ^system.*   rewriterule ^(.*)$ index.php?/$1 [l]    rewritecond %{request_filename} !-f   rewritecond %{request_filename} !-d   rewriterule ^(.*)$ myciname/index.php?/$1 [l]  </ifmodule>  <ifmodule !mod_rewrite.c>   errordocument 404 /index.php </ifmodule> 

all feature it's work well. in hosting error in 1 page, give me '404 page not found'. called url :

http://www.myurl.com/folderadmin/controller/ 

with htaccess file:

options -indexes      <ifmodule mod_rewrite.c>       rewriteengine on       rewritebase /        rewritecond %{request_uri} ^system.*       rewriterule ^(.*)$ index.php?/$1 [l]        rewritecond %{request_filename} !-f       rewritecond %{request_filename} !-d       rewriterule ^(.*)$ index.php?/$1 [l]     </ifmodule>      <ifmodule !mod_rewrite.c>       errordocument 404 /index.php     </ifmodule> 

what's wrong that? please help.

thank answer.

had same problem, solved changing

<ifmodule !mod_rewrite.c> errordocument 404 /index.php </ifmodule> 

to

<ifmodule !mod_rewrite.c>   errordocument 404 folderadmin/controller/index.php </ifmodule> 

so point document root of website.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -