.htaccess - CodeIgniter: removing 'index.php' from URL -


i have answered question , posted answer myself. tried of answered questions, still didn't work. first question regarding placement of .htaccess file, should keep application folder or inside it? , next question 'how should remove index.php url'?

.htaccess code:

rewriteengine on rewritecond $1 !^(index\.php|resources|robots\.txt) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l,qsa] 

config.php code:

$config['index_page'] = ''; $config['uri_protocol'] = 'request_uri'; 

and if possible suggest detailed tutorial regarding how customize tankauth or other authentication library can easier. using windows 8.1 , wamp server.

any suggestion or appreciated.

use in .htaccess file:

rewriteengine on rewritecond $1 !^(index\.php|resources|robots\.txt) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ ./index.php/$1 [l,qsa]  

place ./ before index.php rewrite rule.

or

rewriteengine on rewritecond $1 !^(index\.php|images|robots\.txt) rewriterule ^(.*)$ /index.php/$1 [l] 


more detail refer link:https://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -