CodeIgniter Forums
Scaffolding and .htaccess - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Scaffolding and .htaccess (/thread-16487.html)



Scaffolding and .htaccess - El Forum - 03-08-2009

[eluser]chinathong[/eluser]
hi. I have configured my app with an .htaccess file so to remove the index.php from the urls, I also configured my config.php file with $config['base_url'] = "http://localhost/~username/appname" ... it's working just fine, but I noticed that when using the scaffolding helper I have to explicitly use "index.php" in the url ... that's fine for me, but I'd like to know if there is an extra configuration that I'm missing here. Thanks in advance :-)


Scaffolding and .htaccess - El Forum - 03-08-2009

[eluser]rlaskey[/eluser]
[quote author="chinathong" date="1236553520"]hi. I have configured my app with an .htaccess file so to remove the index.php from the urls, I also configured my config.php file with $config['base_url'] = "http://localhost/~username/appname" ... it's working just fine, but I noticed that when using the scaffolding helper I have to explicitly use "index.php" in the url ... that's fine for me, but I'd like to know if there is an extra configuration that I'm missing here. Thanks in advance :-)[/quote]

$config['index_page'] = "";

Set this in your config/config.php, and you'll be all set.


Scaffolding and .htaccess - El Forum - 03-08-2009

[eluser]chinathong[/eluser]
[quote author="rlaskey" date="1236577369"]
$config['index_page'] = "";
Set this in your config/config.php, and you'll be all set.[/quote]

Strange, but even though I modified to blank, the behaviour is still the same :-(