title: Routes are not working in laravel 4.2
body: <p>i'm new to laravel. In my project routes are not working properly. I had already refer many answers but nothing works. In my project my <strong>route</strong> is as follow</p>
  
  <pre><code>    Route::get('/',array('uses'=&gt;'maincontroller@index'));
      Route::get('first',array('uses'=&gt;'maincontroller@first'));
  </code></pre>
  
  <p>my <strong>controller</strong>..</p>
  
  <pre><code>class MainController extends BaseController
  {
  
      public function index()
      {
          return View::make('site.index');
      }
  
      public function first()
      {
          return View::make('site.firstpage');
      }}
  </code></pre>
  
  <p>i kept my view files properly.
  when i give</p>
  
  <pre><code>    localhost/gc/public/
  </code></pre>
  
  <p>it loads my index page properly. But when i gives</p>
  
  <pre><code>    localhost/gc/public/first 
  </code></pre>
  
  <p>it doesn't works. It throw an error </p>
  
  <pre><code>    Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
  </code></pre>
  
  <p>when i gives like this</p>
  
  <pre><code>     localhost/gc/public/index.php/first.
  </code></pre>
  
  <p>it works.. properly. But i need the proper routing.</p>
  
  <p>someone said there may be problem in my .htaccess file.
  my htaccess file looks like this </p>
  
  <pre><code>   &lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_negotiation.c&gt;
      Options -MultiViews
  &lt;/IfModule&gt;
  
  RewriteEngine On
  
  # Redirect Trailing Slashes...
  RewriteRule ^(.*)/$ /$1 [L,R=301]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  </code></pre>
  
  <p></p>
  
  <p>But i need to know how to solve the routing problem.</p>