I'm using laravel 4.2. I would likes to get clean url for my website using .htaccess.I already removed 'public' folder of laravel and it works fine.But when i try to modify some other url it do not works. my url is http://localhost/vote/singlevote/candidate-name. I wants to modify it as http://localhost/vote/candidate-name which should redirect to my siglevote page with corresponding candidate name.
My .htaccess code is
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^index.php/singlevote/(.*)$ $1
i'm not sure it is correct.i'm just a beginner in using .htaccess.