CodeIgniter Forums
Renaming index.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Renaming index.php (/showthread.php?tid=29875)



Renaming index.php - El Forum - 04-24-2010

[eluser]SaminOz[/eluser]
I wanted to rename index.php for SEO purposes and so changed the file name (but not location) and then set the config['index'] value to newName.

But no luck - I can't think what else I would need to change?

BTW. There is no active .htaccess in the directory.

I did play with config['uri_protocol'] but no change.

Regards,
SaminOz


Renaming index.php - El Forum - 04-24-2010

[eluser]frist44[/eluser]
After you made those changes, what did you type as the URL? I would guess that if you don't specifically put the page newName.php in the URL, you would also have to specify in your apache installation that the newName.php file is your default document.


Renaming index.php - El Forum - 04-24-2010

[eluser]SaminOz[/eluser]
it's true that I could see the file in the directory and therefore could configure apache to access directly - I mistakenly thought I could configure through CI.

No worries, I might take a different approach and use a sub-domain.

Thanks frist!