title: how to remove the index.php from the url in laravel 4
body: <p>I wish to remove the index.php in the url of a laravel 4.2 site. But i don't know how to do that. Without index.php/ the pages are not loading. My routes.php contains</p>
  
  <pre><code>Route::get('/', 'HomeController@home');
  
  Route::get('login','HomeController@home');
  
  Route::get('forgotpassword', 'LoginController@ForgotPassword');
  
  Route::post('loginprocess', 'LoginController@loginprocess');
  
  Route::group(array('before' =&gt; 'auth'), function()
  {
  Route::get('locations','LocationController@locations');
  Route::get('createlocation','LocationController@createlocation');
  Route::post('createlocation','LocationController@savelocation');
  Route::get('editlocation/{data}','LocationController@editlocation');
  Route::post('editlocation/{data}','LocationController@updatelocation');
  Route::get('deletlocation/{data}','VendorController@deletevendor');
  
  Route::post('statusactiveLocation/{data}','LocationController@statusactiveLocation');
  Route::post('statusinactiveLocation/{data}','LocationController@statusinactiveLocation');
  
  Route::get('vendors','VendorController@vendors');
  Route::get('createvendor','VendorController@createvendor');
  Route::post('createvendor','VendorController@savevendor');
  Route::get('editvendor/{data}','VendorController@editvendor');
  Route::post('editvendor/{data}','VendorController@updatevendor');
  Route::get('deletevendor/{data}','VendorController@deletevendor');
  
  Route::post('statusactiveVendor/{data}','VendorController@statusactiveVendor');
  Route::post('statusinactiveVendor/{data}','VendorController@statusinactiveVendor');
  
  Route::get('logout', 'LoginController@Logout');
  });
  </code></pre>