.htaccess doesn't work on xampp (windows 7)
问题 I'm setting my .htaccess file right now to use friendly urls (manually). But, when i go to the url the server shows me Error 404 . RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f Rewriterule ^register$ register.php I'm really sure that mod_rewrite is enabled because i see it when use phpinfo() . 回答1: Even though mod-rewrite is enabled, by default it is not enabled for .htaccess files. Hold Your Breath Open xampp control panel Stop Apache Click the Config