results from site_url() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: results from site_url() (/showthread.php?tid=61482) |
results from site_url() - cupboy - 04-18-2015 With version 2 it returns http://localhost:8055 With version 3 it returns http://localhost:8030/index.php I am converting a ver. 2 site to ver. 3, but why did it append /index.php on there, and what can I do about it? It causes my images not to display for one thing. RE: results from site_url() - suhindra - 04-19-2015 By default, the index.php file will be included in your URLs: Code: example.com/index.php/news/article/my_article If your Apache server has mod_rewrite enabled, you can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the “negative” method in which everything is redirected except the specified items: Code: RewriteEngine On In the above example, any HTTP request other than those for existing directories and existing files is treated as a request for your index.php file. RE: results from site_url() - cupboy - 04-19-2015 I tried that .htaccess file but it didn't change the results any. RE: results from site_url() - CroNiX - 04-19-2015 Did you remove 'index.php' from index_page config setting in /application/config/config.php? That also needs to be done. $config['index_page'] = ''; Code: /* RE: results from site_url() - cupboy - 04-19-2015 It's working at the moment. Hope it stays that way. RE: results from site_url() - paju89 - 04-20-2015 (04-19-2015, 08:42 AM)cupboy Wrote: I tried that .htaccess file but it didn't change the results any. hope this helps Code: <IfModule mod_rewrite.c> |