Hello,
I am trying to get all my requests go to this one single index.php, and so far i have:
Options +FollowSymLinks
# Turn on the RewriteEngine
RewriteEngine On
# Rules
RewriteBase /kesillo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/{controller}/{method}/$1 [L]
If i do:
»
localhost/kesillo - works
»
localhost/kesillo/cont - works
»
localhost/kesillo/cont/meth - doesnt work
Basically what i want to do it is to map the url to controllers and methods with(out) params, these will be typically will be done via Angular JS using ajax.
One of the problems i am having is that my source resources css, js, images is being modified and appended the "cont/meth" part. So insteal of looking like:
»
:/localhost/kesillo/apps ··· tyle.css i am getting
»
:/localhost/kesillo/cont ··· tyle.cssAny ideas?
Thanks.