.htaccess URL rewriting does not work -


i wrote code .htaccess file, seems not work.

rewriteengine on options +followsymlinks rewriterule ^([^/]*)\.html$ /category/test.php?name=$1 [l] 

when writing http://example.com/z.html automatically redirects me 404 file. have suggestions?

make sure have mod_rewrite enabled , try rules way.

options -multiviews +followsymlinks rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)\.html$ /category/test.php?name=$1 [l] 

Comments