本来要开启rewrite,只要打开httpd.conf,把下面这行前面的#去掉就可以了。 #LoadModule rewrite_module modules/mod_rewrite.so 可是昨天装了apache2最新版却出了意外,去掉了这行,rewrite还没打开 用了一个下午,百思不得其解.终于发现httpd.conf里有这么一段 # # 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.2/mod/core.html#opt… # 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: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from all 将AllowOverride None改为AllowOverride All 重启Apache,终于搞定! |
|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )
GMT+8, 2024-9-30 23:23 , Processed in 0.223125 second(s), 12 queries , Gzip On, MemCache On.
Powered by Discuz! X3.5
© 2001-2023 Discuz! Team.