Load default view with CI - 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: Load default view with CI (/showthread.php?tid=46327) |
Load default view with CI - El Forum - 10-27-2011 [eluser]Unknown[/eluser] Hello! Need help with this: Had my site with this URL mysite.com/index.php/controller/view1 Removed controller name from URL with routes.php with .haccess removed index.php and site works with mysite.com/view1. But it doesnot work with simple mysite.com How to make that with mysite.com called mysite.com/view1 ? Code: DirectoryIndex view1.php And trying this one Code: RewriteCond %{HTTP_HOST} ^mysite.com$ [NC] Thanks |