• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load default view with CI

#1
[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
not work.

And trying this one
Code:
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/view1/$1 [R=301,L]

Thanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.