解决办法,都是修改C:\wamp\bin\apache\apache2.4.9\conf下的httpd.conf文件。
1、解决不能访问项目的问题,只能访问到localhost
开启rewrite_module;
Apache -->Apache Modules --> rewrite_module
2、解决局域网不能访问的问题
修改2个 <Directory>
1)、<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>
2、
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Allow from all
</Directory>
3、修改配置出问题导致要重装的时候,切记,一定要,一定要,备份数据库,备份数据库,备份数据库。