results from site_url() |
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.
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.
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: /* (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> |
Welcome Guest, Not a member yet? Register Sign In |