I'm not sure if it's possible, but what i need is to load default controller
and action
if specified controller
has not been found from the url
, so let's say if i have this url:
http://mywebsite.com/john
It would have to call user
controller and selected_user
action,
And if i have url http://mywebsite.com/pages/profile
it would have to call pages
controller and profile
action because both has been specified and found
Is there a way to do it?
I am using Kohana 3.2
EDIT Here is my htaccess:
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /ep/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
/ep
is my directory in htdocs
also i did set 'base_url' => '/ep/',
in my bootstrap
as well