07-01-2010, 08:08 AM
[eluser]danmontgomery[/eluser]
[quote author="GK" date="1278010216"]Noctrum, i've also tried without Default controller by using
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
but this time it is showing (404) other methods.[/quote]
Because you don't have any routes defined,
hostelsearch.in/index would be looking for the "index" controller.
The default controller only gets called when one isn't provided. Setting the default controller to "HostelSearch" then calling index.php/index won't call HostelSearch/index. You need to use routing for that. Please read the user guide.
http://ellislab.com/codeigniter/user-gui...uting.html
[quote author="GK" date="1278010216"]Noctrum, i've also tried without Default controller by using
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
but this time it is showing (404) other methods.[/quote]
Because you don't have any routes defined,
hostelsearch.in/index would be looking for the "index" controller.
The default controller only gets called when one isn't provided. Setting the default controller to "HostelSearch" then calling index.php/index won't call HostelSearch/index. You need to use routing for that. Please read the user guide.
http://ellislab.com/codeigniter/user-gui...uting.html