i want to redirect my query base url to pretty url,i am trying this on local host, i want if any one try to access http://localhost/something/index.php?page=zen it will redirect to http://localhost/something/zen.html,
ie
http://localhost/something/index.php?page=zen => http://localhost/something/zen.html
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteCond %{QUERY_STRING} ^page=([a-zA-Z0-9_-])$
RewriteRule ^(.*)$ http://localhost/cmsmadesimple/%1.html [L,R=301]