Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

How to remove index.php from CodeIgniter URL

$
0
0

Using the Bitnami LAMP stack, I have set up the Codeigniter framework.

I have enabled the sample app, so myapp.bitnamiapp.com points to the Welcome controller, in the codeigniter.conf

All other Controllers however still have to be accessed through myapp.bitnamiapp.com/codeigniter/index.php.

Normally, when I have set up Codeigniter, adding the following to the .htaccess file in the webroot has worked: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]

The difference in the bitnami setup is, that Codeigniter is not placed in the "webroot" but rather in the parent directory, so instead of the codeigniter application being IN the webroot/htdocs dir, like: htdocs - application - images - css it's: codeigniter - application - htdocs - images - css

So the .htaccess is in the htdocs subdirectory of the framework and the normal way of pointing to remove index.php doesn't work.

Does any of you smart people have a solution for this.

Cheers, David


Viewing all articles
Browse latest Browse all 2052

Trending Articles