遇到问题:使用wampserve打开程序时,出现以下情况
于是查看Apache的错误日志,记录了如下错误:
G:/wamp/www/webapplication/.htaccess:Invalid command 'RewriteEngine', perhaps misspelled or defined by a module notincluded in the server configuration。
得知,原来是要启用htaccess文件 ,需要Apache服务器启用了 mod_rewrite。解决方法:打开apache的配置文件httpd.conf ,取消 LoadModule rewrite_modulemodules/mod_rewrite.so前的注释。