php - CodeIgniter some issues with subomain and subdirectory -


i have problems codeigniter 3.0.1 installation. have installed codeigniter subdirectory on subdomain, example subdomain.domain.com/codeigniter.

i have created .htaccess file remove index.php url when try access default controller got 404 error.

my htaccess file.

rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l] 

my config file

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

and default controller in routes.php

$route['default_controller'] = "auth"; 

why $0 - segment 0? htaccess:

rewriteengine on  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l]  

and try switch request uri parameter, auto should work in cases.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -