I have urls in the following format:
http://localhost/profile.php?name=billgates
I have used the following .htaccess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?profile/(.*?)/?$ /profile.php?name=$1 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /profile\.php\?name=([^\&\ ]+)
RewriteRule ^/?profile\.php$ /profile/%1? [L,R=301]
Which converts urls to the format:
http://localhost/profile/billgates
Please let me know how I can edit the .htacces file to remove the profile/ and make urls in the format:
http://localhost/billgates