
Apache如何开启Mod_rewrite模块以及Wordpress伪静态
1个回答
展开全部
PHP程式版本: 5.2.0MYSQL 版本: 5.0.27-community-nt服务器端信息: Apache/2.2.4 (Win32) PHP/5.2.0一 开启Mod_rewrite模块打开Apache2\conf\httpd.conf搜索LoadModule rewrite_module modules/mod_rewrite.so (Apache2是这个)去掉前面的# 搜索AllowOverride None 替换为 AllowOverride All有好几个找到和下面代码类似的那个</IfModule>## "D:\usr\local\Apache2\cgi-bin" should be changed to whatever your ScriptAliased# CGI directory exists, if you have that configured.#<Directory "D:\usr\local\Apache2\cgi-bin">AllowOverride AllOptions NoneOrder allow,denyAllow from all</Directory>二在Apache2\conf\httpd.conf 最后一行添加<IfModule mod_rewrite.c>RewriteEngine OnRewriteRule ^(.*)-htm-(.*)$ $1.php?$2</IfModule>重新Apache 登陆WP后台开启全伪
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询