Redirection through htaccess not working
问题 I want to rewrite the URL like below: URL: http://localhost/my_site/?file_name=sample This is my URL I want to show it like: URL: http://localhost/my_site/sample that means I want to remove file_name parameter and get the parameter value and set it in URL, for setting this I have used below code: RewriteEngine On RewriteBase /my_site/ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ /?file_name=$1 [QSA,L] But its