asp的伪静态编写案例 关键词:伪静态,asp,案例

当前位置:首页> 服务中心 > 主机问题 > asp的伪静态编写案例

asp的伪静态编写案例

发布时间:2013-1-9 阅读次数:6746

广州新一代主机购买之后,可能有的客户会需要用到伪静态功能,可按照下面的步骤找到伪静态,

 

 

找到您的空间,

 

点进去之后,点击 基本 url重写

 

 

把伪静态的代码直接写在这个文本框里,然后点确定设置,

下面是一个asp网站的伪静态案例:

 

RewriteEngine On
RewriteRule ^index\.html$ index\.asp [NC]

RewriteRule ^user/(\d*)\.html$ Member/Profile/show\.asp\?userId=$1 [NC]

RewriteRule ^shop/(\d*)/?$ shop/index\.asp\?UserId=$1 [NC]
RewriteRule ^shop/(\d*)/cert/(\d*)\.html$ shop/showcert\.asp\?UserId=$1&id=$2 [NC]
RewriteRule ^shop/(\d*)/about\.html?$ shop/about\.asp\?UserId=$1 [NC]
RewriteRule ^shop/(\d*)/contact\.html?$ shop/contact\.asp\?UserId=$1 [NC]
RewriteRule ^shop/(\d*)/cert\.html?$ shop/cert\.asp\?UserId=$1 [NC]

RewriteRule ^shop/(\d*)/product/(index\.html)?$ shop/product\.asp\?UserId=$1 [NC]
RewriteRule ^shop/(\d*)/product/p(\d*)/$ shop/product\.asp\?UserId=$1&page=$2 [NC]
RewriteRule ^shop/(\d*)/product/c(\d*)/?$ shop/product\.asp\?UserId=$1&CategoryId=$2 [NC]
RewriteRule ^shop/(\d*)/product/c(\d*)_p(\d*)/$ shop/product\.asp\?UserId=$1&CategoryId=$2&page=$3 [NC]
RewriteRule ^shop/(\d*)/product/(\d*)\.html$ shop/productDetail\.asp\?UserId=$1&Id=$2 [NC]

RewriteRule ^shop/(\d*)/trade/(index\.html)?$ shop/trade\.asp\?UserId=$1 [NC]
RewriteRule ^shop/(\d*)/trade/p(\d*)/$ shop/trade\.asp\?UserId=$1&page=$2 [NC]
RewriteRule ^shop/(\d*)/trade/c(\d*)/?$ shop/trade\.asp\?UserId=$1&CategoryId=$2 [NC]
RewriteRule ^shop/(\d*)/trade/c(\d*)_p(\d*)/$ shop/trade\.asp\?UserId=$1&CategoryId=$2&page=$3 [NC]
RewriteRule ^shop/(\d*)/trade/(\d*)\.html$ shop/tradeDetail\.asp\?UserId=$1&Id=$2 [NC]


RewriteRule ^shop/(\d*)/blog/(index\.html)?$ shop/blog\.asp\?UserId=$1 [NC]
RewriteRule ^shop/(\d*)/blog/list_p(\d*)\.html$ shop/blog\.asp\?UserId=$1&page=$2 [NC]
RewriteRule ^shop/(\d*)/blog/(\d*)\.html$ shop/blogDetail\.asp\?UserId=$1&Id=$2 [NC]

RewriteRule ^news/(\d*)/$ news/List\.asp\?classid=$1 [NC]
RewriteRule ^news/(\d*)_p(\d*)(/)?$ news/List\.asp\?classid=$1&page=$2 [NC]
RewriteRule ^news/(\d*)\.html$ news/detail\.asp\?id=$1 [NC]
RewriteRule ^news/(\d*)_(\d*)\.html$ news/detail\.asp\?id=$1&page=$2 [NC]

RewriteRule ^blog/(\d*)/$ blog/List\.asp\?classId=$1 [NC]
RewriteRule ^blog/(\d*)/p(\d*)\.html$ blog/List\.asp\?classid=$1&page=$2 [NC]
RewriteRule ^blog/(\d*)\.html$ blog/detail\.asp\?id=$1 [NC]

RewriteRule ^proxy/$ proxy/list\.asp [NC]
RewriteRule ^proxy/list_p(\d*)\.html$ proxy/list\.asp\?page=$1 [NC]
RewriteRule ^proxy/c(\d*)\.html$ proxy/list\.asp\?category1=$1 [NC]
RewriteRule ^proxy/c(\d*)_p(\d*)\.html$ proxy/list\.asp\?category1=$1&page=$2 [NC]
RewriteRule ^proxy/p(\d*)\.html$ proxy/list\.asp\?province=$1 [NC]
RewriteRule ^proxy/p(\d*)_p(\d*)\.html$ proxy/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^proxy/(\d*)\.html$ proxy/Detail\.asp\?id=$1 [NC]

RewriteRule ^invest/search\.html(.*)$ invest/list\.asp$1 [NC]
RewriteRule ^invest/$ invest/list\.asp$1 [NC]
RewriteRule ^invest/c(\d*)/$ invest/list\.asp\?category=$1 [NC]
RewriteRule ^invest/c(\d*)_p(\d*)/$ invest/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^invest/a(\d*)/$ invest/list\.asp\?province=$1 [NC]
RewriteRule ^invest/a(\d*)_p(\d*)(/)?$ invest/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^invest/(\d*)\.html$ invest/Detail\.asp\?id=$1 [NC]
RewriteRule ^invest/p(\d*)/$ invest/list\.asp\?page=$1 [NC]
RewriteRule ^invest/c(\d*)_a(\d*)/$ invest/list\.asp\?category=$1&province=$2 [NC]
RewriteRule ^invest/c(\d*)_a(\d*)_p(\d*)/$ invest/list\.asp\?category=$1&province=$2&page=$3 [NC]


RewriteRule ^supply/$ supply/list\.asp$1 [NC]
RewriteRule ^supply/search\.html(.*)$ supply/list\.asp$1 [NC]
RewriteRule ^supply/c(\d*)/$ supply/list\.asp\?category=$1 [NC]
RewriteRule ^supply/c(\d*)_p(\d*)/$ supply/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^supply/m(\d*)/$ supply/list\.asp\?channel=$1 [NC]
RewriteRule ^supply/m(\d*)_p(\d*)/$ supply/list\.asp\?channel=$1&page=$2 [NC]
RewriteRule ^supply/a(\d*)/$ supply/list\.asp\?province=$1 [NC]
RewriteRule ^supply/a(\d*)_p(\d*)(/)?$ supply/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^supply/(\d*)\.html$ supply/Detail\.asp\?id=$1 [NC]
RewriteRule ^supply/p(\d*)/$ supply/list\.asp\?page=$1 [NC]
RewriteRule ^supply/c(\d*)_a(\d*)_m(\d*)_p(\d*)/$ supply/list\.asp\?category=$1&province=$1&channel=$3&page=$4 [NC]

RewriteRule ^product/search\.html(.*)$ product/list\.asp$1 [NC]
RewriteRule ^product/$ product/list\.asp$1 [NC]
RewriteRule ^product/p(\d*)/$ product/list\.asp\?page=$1 [NC]
RewriteRule ^product/c(\d*)/$ product/list\.asp\?category=$1 [NC]
RewriteRule ^product/c(\d*)_p(\d*)/$ product/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^product/a(\d*)/$ product/list\.asp\?province=$1 [NC]
RewriteRule ^product/a(\d*)_p(\d*)/$ product/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^product/(\d*)\.html$ product/detail\.asp\?id=$1 [NC]
RewriteRule ^product/c(\d*)_a(\d*)/$ product/list\.asp\?category=$1&province=$2 [NC]
RewriteRule ^product/c(\d*)_a(\d*)_p(\d*)/$ product/list\.asp\?category=$1&province=$2&page=$3 [NC]

RewriteRule ^buy/$ buy/list\.asp$1 [NC]
RewriteRule ^buy/p(\d*)/$ buy/list\.asp\?page=$1 [NC]
RewriteRule ^buy/c(\d*)/$ buy/list\.asp\?category=$1 [NC]
RewriteRule ^buy/c(\d*)_p(\d*)/$ buy/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^buy/a(\d*)/$ buy/list\.asp\?province=$1 [NC]
RewriteRule ^buy/a(\d*)_p(\d*)/$ buy/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^buy/(\d*).html$ buy/detail\.asp\?id=$1 [NC]
RewriteRule ^buy/c(\d*)_a(\d*)/$ buy/list\.asp\?category=$1&province=$2 [NC]
RewriteRule ^buy/c(\d*)_a(\d*)_p(\d*)/$ buy/list\.asp\?category=$1&province=$2&page=$3 [NC]

RewriteRule ^brand/$ brand/list\.asp [NC]
RewriteRule ^brand/list_p(\d*)\.html$ brand/list\.asp\?page=$1 [NC]
RewriteRule ^brand/c(\d*).html$ brand/list\.asp\?category=$1 [NC]
RewriteRule ^brand/c(\d*)_p(\d*)\.html$ brand/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^brand/p(\d*).html$ brand/list\.asp\?province=$1 [NC]
RewriteRule ^brand/p(\d*)_p(\d*)\.html$ brand/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^brand/(\d*)\.html$ brand/detail\.asp\?id=$1 [NC]
RewriteRule ^brand/rank/$ brand/rank\.asp [NC]

RewriteRule ^company/(index\.html)?$ company/list\.asp [NC]
RewriteRule ^company/p(\d*)/$ company/list\.asp\?page=$1 [NC]
RewriteRule ^company/c(\d*)/$ company/list\.asp\?category=$1 [NC]
RewriteRule ^company/c(\d*)_p(\d*)/$ company/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^company/a(\d*)/$ company/list\.asp\?province=$1 [NC]
RewriteRule ^company/a(\d*)_p(\d*)/$ company/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^company/c(\d*)_a(\d*)/$ company/list\.asp\?category=$1&province=$2 [NC]
RewriteRule ^company/c(\d*)_a(\d*)_p(\d*)/$ company/list\.asp\?category=$1&province=$2&page=$3 [NC]
RewriteRule ^company/(\d*)\.html$ company/detail\.asp\?UserId=$1 [NC]

RewriteRule ^agent/$ agent/list\.asp [NC]
RewriteRule ^agent/p(\d*)/$ agent/list\.asp\?page=$1 [NC]
RewriteRule ^agent/c(\d*)/$ agent/list\.asp\?category=$1 [NC]
RewriteRule ^agent/c(\d*)_p(\d*)/$ agent/list\.asp\?category=$1&page=$2 [NC]
RewriteRule ^agent/a(\d*)/$ agent/list\.asp\?province=$1 [NC]
RewriteRule ^agent/a(\d*)_p(\d*)/$ agent/list\.asp\?province=$1&page=$2 [NC]
RewriteRule ^agent/(\d*)\.html$ agent/detail\.asp\?UserId=$1 [NC]

RewriteRule ^area/a(\d*)/$ area/list\.asp\?province=$1 [NC]

RewriteRule ^expo/$ expo/list\.asp [NC]
RewriteRule ^expo/p(\d*)/$ expo/list\.asp\?page=$1 [NC]
RewriteRule ^expo/(\d*)\.html$ expo/detail\.asp\?id=$1 [NC]

RewriteRule ^report/$ report/list\.asp [NC]
RewriteRule ^report/c(\d*)\.html$ report/list\.asp\?category=$1 [NC]
RewriteRule ^report/c(\d*)_p(\d*)\.html$ report/list\.asp\?category1=$1&page=$2 [NC]
RewriteRule ^report/brand_(\d*)\.html$ report/brand\.asp\?id=$1 [NC]
RewriteRule ^report/(\d*)\.html$ report/detail\.asp\?id=$1 [NC]

RewriteRule ^comment/$ comment/list\.asp [NC]
RewriteRule ^comment/c(\d*)\.html$ comment/list\.asp\?category=$1 [NC]
RewriteRule ^comment/c(\d*)_p(\d*)\.html$ comment/list\.asp\?category1=$1&page=$2 [NC]
RewriteRule ^comment/brand_(\d*)\.html$ comment/brand\.asp\?id=$1 [NC]
RewriteRule ^comment/(\d*)\.html$ comment/detail\.asp\?id=$1 [NC]

全部项目空间主机服务项目域名注册常见问题网站公告

世纪互联

深圳网站空间

网站空间购买

网站空间价格

独立IP虚拟主机

广东虚拟主机

解决方案

行业知识

行业标准

下载中心

常见问题

深圳虚拟主机

广州主机托管

广东服务器租用

双线服务器租用

域名注册网站

独立IP虚拟主机

世纪互联数据中心

广州主机托管

广东服务器租用

双线服务器租用

域名注册网站

独立IP虚拟主机

世纪互联数据中心

广东服务器租用

双线服务器租用

域名注册网站

网络域名注册

深圳域名注册

策划营销

地址:广东省广州市天河区平云路广电A塔4楼     粤ICP备11010858号-1 版权所有 @ 世纪互联托管,服务器托管,世纪互联服务器托管
咨询热线:徐永龙 18675583540 电话:18675583540
最小化
在线客服

QQ:渠道专员

QQ:销售咨询

联系方式请点击