求大神帮忙把伪静态.htaccess转换成web.config
RewriteEngineOnRewriteBase/RewriteRule^space/(.+)\/$space\.php\?user=$1RewriteRule^st...
RewriteEngine On
RewriteBase /
RewriteRule ^space/(.+)\/$ space\.php\?user=$1
RewriteRule ^store-([0-9]+)\/$ store\.php\?uid=$1
RewriteRule ^store-([0-9]+)/([^\/]+).html$ store\.php\?uid=$1&Uid=$2
RewriteRule ^a/(.+)/$ a\/$1\/index.html
RewriteRule ^(?!\m\b)([^\/]+)/$ category\.php\?Catid=$1
RewriteRule ^category-([^\/]+)\.html$ category\.php\?CAtid=$1
RewriteRule ^([^\/]+)/([0-9]+)\.html$ information\.php\?id=$2
RewriteRule ^information-id-([0-9]+)\.html$ information\.php\?id=$1
RewriteRule ^news\.html$ news\.php
RewriteRule ^news-id-([0-9]+)\.html$ news\.php\?id=$1
RewriteRule ^news-catid-([0-9]+)\.html$ news\.php\?catid=$1
RewriteRule ^news-catid-([0-9]+)-page-([0-9]+)\.html$ news\.php\?catid=$1&page=$2
RewriteRule ^corporation\.html$ corporation\.php
RewriteRule ^corporation-([^\/]+)\.html$ corporation\.php\?Catid=$1
RewriteRule ^aboutus\.html$ about\.php\?part=aboutus
RewriteRule ^sitemap\.html$ about\.php\?part=sitemap
RewriteRule ^aboutus-id-([0-9]+)\.html$ about\.php\?part=aboutus&id=$1
RewriteRule ^announce\.html$ about\.php\?part=announce&id=$1
RewriteRule ^faq\.html$ about\.php\?part=faq
RewriteRule ^faq-id-([0-9]+)\.html$ about\.php\?part=faq&id=$1
RewriteRule ^friendlink\.html$ about\.php\?part=friendlink 展开
RewriteBase /
RewriteRule ^space/(.+)\/$ space\.php\?user=$1
RewriteRule ^store-([0-9]+)\/$ store\.php\?uid=$1
RewriteRule ^store-([0-9]+)/([^\/]+).html$ store\.php\?uid=$1&Uid=$2
RewriteRule ^a/(.+)/$ a\/$1\/index.html
RewriteRule ^(?!\m\b)([^\/]+)/$ category\.php\?Catid=$1
RewriteRule ^category-([^\/]+)\.html$ category\.php\?CAtid=$1
RewriteRule ^([^\/]+)/([0-9]+)\.html$ information\.php\?id=$2
RewriteRule ^information-id-([0-9]+)\.html$ information\.php\?id=$1
RewriteRule ^news\.html$ news\.php
RewriteRule ^news-id-([0-9]+)\.html$ news\.php\?id=$1
RewriteRule ^news-catid-([0-9]+)\.html$ news\.php\?catid=$1
RewriteRule ^news-catid-([0-9]+)-page-([0-9]+)\.html$ news\.php\?catid=$1&page=$2
RewriteRule ^corporation\.html$ corporation\.php
RewriteRule ^corporation-([^\/]+)\.html$ corporation\.php\?Catid=$1
RewriteRule ^aboutus\.html$ about\.php\?part=aboutus
RewriteRule ^sitemap\.html$ about\.php\?part=sitemap
RewriteRule ^aboutus-id-([0-9]+)\.html$ about\.php\?part=aboutus&id=$1
RewriteRule ^announce\.html$ about\.php\?part=announce&id=$1
RewriteRule ^faq\.html$ about\.php\?part=faq
RewriteRule ^faq-id-([0-9]+)\.html$ about\.php\?part=faq&id=$1
RewriteRule ^friendlink\.html$ about\.php\?part=friendlink 展开
1个回答
2015-03-27
展开全部
1、URL Rewrite下载地址:http://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads
2、.htaccess 是apache环境下的文件访问控制,web.config是IIS下的,这个问题是在将php代码迁移到window azure(微软云)上遇到的,因为微软云上的web容器是IIS
【步骤】:
1、下载并安装URL Rewrite,安装后启动IIS,点选一个网站,再双击URL 重写
2、点击导入规则
3、 可以在重写规则内写.htaccess的具体规则,也可直接导入.htaccess,然后在操作中点击应用,就可在第一步选中的网站目录下生成相应的web.config
2、.htaccess 是apache环境下的文件访问控制,web.config是IIS下的,这个问题是在将php代码迁移到window azure(微软云)上遇到的,因为微软云上的web容器是IIS
【步骤】:
1、下载并安装URL Rewrite,安装后启动IIS,点选一个网站,再双击URL 重写
2、点击导入规则
3、 可以在重写规则内写.htaccess的具体规则,也可直接导入.htaccess,然后在操作中点击应用,就可在第一步选中的网站目录下生成相应的web.config
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家提供动态代理服务器服务的企业,旨在帮助用户更好地管理网络访问和安全。以下是一些关于StormProxies的IP动态代理服务的特点:1. 高匿名性:StormProxies的动态代理服务器具有高匿名性,可以有效...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询