phpMyWind本地伪静态设置方法
第一步:登陆phpmywind管理后台,点击”网站信息配置”-”URL静态化”,将是否启用伪静态设置为”是”,然后点保存配置。
成都创新互联专注于歙县网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供歙县营销型网站建设,歙县网站制作、歙县网页设计、歙县网站官网定制、微信小程序开发服务,打造歙县网络公司原创品牌,更为您提供歙县网站排名全网营销落地服务。第二步:
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?
当前文章:phpMyWind本地伪静态设置方法
文章转载:http://hbruida.cn/article/cjhiso.html