htaccess made me insane!!! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: htaccess made me insane!!! (/showthread.php?tid=59547) |
htaccess made me insane!!! - El Forum - 10-19-2013 [eluser]ilpega[/eluser] I have read a lot of topic with the same problem but i do not find the solution... please help me. I have a lamp into ubuntu server. My document root is /home/utente/ into this dir I have another dir (turni) with a codeigniter web app. The web app works fine with the "index.php" into the url, but I want to eliminate it. I have this configuration: config.php into codeigniter: Code: $config['index_page'] = ''; Code: RewriteEngine On Code: <VirtualHost *:80> Why??? If i put the index.php like /turni/index.php/auth/login all works fine.... Thanks for help and sorry for my english htaccess made me insane!!! - El Forum - 10-19-2013 [eluser]Tpojka[/eluser] Try with different RewriteBase in .htaccess file: Code: RewriteBase /turni/ htaccess made me insane!!! - El Forum - 10-19-2013 [eluser]ilpega[/eluser] Thanks for response! I tried the different rewritebase but nothing change I tried also, with RewriteBase /, to put che apllication into the root (/home/utente/) but nothing change... with index.php tha app works fine, without index.php ----> The requested URL was not found on this server. Any other solutions ??? htaccess made me insane!!! - El Forum - 10-19-2013 [eluser]Tpojka[/eluser] Is $config['base_url'] variable set well? I think it should be Code: $config['base_url'] = 'http://localhost/turni/'; And check error logs both CI and apache what is said. htaccess made me insane!!! - El Forum - 10-19-2013 [eluser]CroNiX[/eluser] probably not the problem, but you can remove these 4 lines as these directories now include their own htaccess which prevents direct access to them. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] But I think the problem is you are setting AllowOverride None |