翻译Apache的.htaccess文件到IIS的web.config [英] Translating an Apache .htaccess file to an IIS web.config

查看:223
本文介绍了翻译Apache的.htaccess文件到IIS的web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我开发使用PHP,MySQL和Apache的在我的本地应用程序,它具有含本.htaccess文件:


I developed an application on my local using PHP, MySQL and Apache and it has a .htaccess file containing this:

#Setting the default handler.
  DirectoryIndex home.do

<IfModule mod_mime.c>
  #Supporting .do extensions    
     AddType application/x-httpd-php .do
</IfModule>

<IfModule mod_rewrite.c>
  #Removing .do file extension if necessary
     RewriteEngine on
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME}\.do -f
     RewriteRule ^(.*)$ $1.do
</IfModule>

不过,我告诉我的客户的Web服务器IIS和我必须使用的.htaccess的web.config文件来代替。任何人都可以直接我通过这个,好吗?

But I informed that my customer's web server is IIS and I have to use a web.config file instead of .htaccess. Can anyone direct me through this, please?

推荐答案

这篇文章值得一看:
翻译的.htaccess内容到IIS的web.config

This article worth a look:
Translating .htaccess Content to IIS web.config

这篇关于翻译Apache的.htaccess文件到IIS的web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆