# 启用重写引擎 RewriteEngine On # 如果请求的文件或目录存在,则不重写 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # 首页 RewriteRule ^index\.html$ index.aspx [L] # 关于我们/单页 RewriteRule ^abtu([0-9]+)\.html$ aboutus.aspx?tid=$1 [L] # 注册 RewriteRule ^userreg\.html$ userreg.aspx [L] # 验证用户 RewriteRule ^RegAudSucces\.html$ RegAudSucces.aspx [L] # 注册成功 RewriteRule ^LoginSuccess\.html$ LoginSuccess.aspx [L] # 登录 RewriteRule ^userlogin\.html$ userlogin.aspx [L] # 退出 RewriteRule ^logout\.html$ logout.aspx [L] # 用户首页 RewriteRule ^userindex\.html$ userindex.aspx [L] # 找回密码 RewriteRule ^UserGetPass\.html$ UserGetPass.aspx [L] # 修改密码 RewriteRule ^userSetPass\.html$ userSetPass.aspx [L] # 发布信息 RewriteRule ^usRls([0-9]+)\.html$ userRelease.aspx?mid=$1 [L] # 产品列表页 RewriteRule ^pros/pl([0-9]+)\.html$ pros/prolist.aspx?tid=$1 [L] RewriteRule ^pros/pl([0-9]+)_([0-9]+)\.html$ pros/prolist.aspx?tid=$1&$2 [L] # 我发布的产品单页 RewriteRule ^userpro([0-9]+)\.html$ userpro.aspx?pkid=$1 [L] # 产品单页 RewriteRule ^pros/p([0-9]+)\.html$ pros/pro.aspx?pkid=$1 [L] # 新闻列表页 RewriteRule ^news/newsl([0-9]+)\.html$ news/newslist.aspx?tid=$1 [L] # 新闻单页 RewriteRule ^news/n([0-9]+)\.html$ news/news.aspx?pkid=$1 [L] # 案例列表页 RewriteRule ^cases/cl([0-9]+)\.html$ cases/caselist.aspx?tid=$1 [L] # 案例单页 RewriteRule ^cases/c([0-9]+)\.html$ cases/case.aspx?pkid=$1 [L] # 搜索结果 RewriteRule ^sl(.+)\.html$ searchlist.aspx?keys=$1 [L] RewriteRule ^sl\.html$ searchlist.aspx [L] # 会员下载 RewriteRule ^userdownload(.+)\.html$ userDownload.aspx?tid=$1 [L] # 我发布的信息 RewriteRule ^userRelist([0-9]+)\.html$ userRelist.aspx?tid=$1 [L] RewriteRule ^userRelist([0-9]+)_([0-9]+)\.html$ userRelist.aspx?tid=$1&vals=$2 [L] # 其他会员发布的信息 RewriteRule ^userOthRelist(.+)\.html$ userOthRelist.aspx?tid=$1 [L] # 用户激活 RewriteRule ^activationuser(.+)\.html$ activationuser.aspx?authstr=$1 [L]