I'm trying to run a PHP codeigniter website on Azure.
But when I set
$config['index_page'] = '';
of my config.php it shows me an error saying "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable"
So once I set that to
$config['index_page'] = 'index.php';
I could load my website.
Now in my urls look like this
http://mysamplesite.azurewebsites.net/helloworld/index.php/Demo
But I want that to be like this,
http://mysamplesite.azurewebsites.net/helloworld/Demo
But every time when I remove that index.php part I got the above mentioned error.
I tried to change my htaccess file, but keep getting the error, this is my htaccess file,
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
Also I had to use site_url() instead of base_url.
So how can I drop index.php from the url?