phpMyWind本地伪静态设置方法

摘要:第一步:登陆phpmywind管理后台,点击”网站信息配置”-”URL静态化”,将是否启用伪静态设置为”是”,然后点保存配置。如下图所示:   第二步: Apache Web Server(虚拟主机用户) 复制规则粘贴到记事本,保存为.htaccess文件,存放在在根目录即可 # 将 RewriteEngine 模式打开 RewriteEngine On # 修改以下语句中的 /

第一步:登陆phpmywind管理后台,点击”网站信息配置”-”URL静态化”,将是否启用伪静态设置为”是”,然后点保存配置。

timg (60).jpg

 

第二步:

Apache Web Server(虚拟主机用户)

复制规则粘贴到记事本,保存为.htaccess文件,存放在在根目录即可

#将RewriteEngine模式打开 RewriteEngineOn #修改以下语句中的/改为您的系统目录地址,如果程序放在根目录中则无需修改 RewriteBase/dm #Rewrite系统规则请勿修改 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^index.html$index.php RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^about-([0-9]+)-([0-9]+).html$about.php?cid=$1&page=$2 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^news-([0-9]+)-([0-9]+).html$news.php?cid=$1&page=$2 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^newsshow-([0-9]+)-([0-9]+)-([0-9]+).html$newsshow.php?cid=$1&id=$2&page=$3 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^product-([0-9]+)-([0-9]+).html$product.php?cid=$1&page=$2 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^productshow-([0-9]+)-([0-9]+)-([0-9]+).html$productshow.php?cid=$1&id=$2&page=$3 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^case-([0-9]+)-([0-9]+).html$case.php?cid=$1&page=$2 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^caseshow-([0-9]+)-([0-9]+)-([0-9]+).html$caseshow.php?cid=$1&id=$2&page=$3 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^join-([0-9]+).html$join.php?page=$1 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^joinshow-([0-9]+).html$joinshow.php?id=$1 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^message-([0-9]+).html$message.php?page=$1 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^contact-([0-9]+)-([0-9]+).html$contact.php?cid=$1&page=$2 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^soft-([0-9]+)-([0-9]+).html$soft.php?cid=$1&page=$2 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^softshow-([0-9]+)-([0-9]+)-([0-9]+).html$softshow.php?cid=$1&id=$2&page=$3 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^goods-([0-9]+)-([0-9]+)-([0-9]+).html$goods.php?cid=$1&tid=$2&page=$3 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^goodsshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$goodsshow.php?cid=$1&tid=$2&id=$3&page=$4 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^vote-([0-9]+).html$vote.php?id=$1 RewriteCond%{QUERY_STRING}^(.*)$ RewriteRule^(w+).html$$1.php?