Welcome Guest, Not a member yet? Register   Sign In
Routing without index.php
#1

Hello


I am trying to have a route like http://website/all

I put this in my routes:
$route['all'] = "index/all"; //controller / function

And it says in the specs that this should route me to 
website/all 
but is not doing that.
That route is actually working with an index.php like website/index.php/all

So how do I get rid of the index.php pls?
Reply
#2

@alext,

Here is documentation that should help you ( https://www.codeigniter.com/userguide3/g...x-php-file ).
Reply
#3

Thanks php_rocs.
Will this be ok for images and other sutff? I remember zend had something like this but they had a list of files that should not go there.
Reply
#4

Actually I just found out on server we have ngingx so is ok they will fix it Smile
Thanks!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB