Windows服务器上的.htaccess文件 [英] .htaccess file on windows server

查看:159
本文介绍了Windows服务器上的.htaccess文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了研究,发现我的htaccess的文件将不是我的新的Windows服务器上运行。我已经看到,我应该使用的web.config。试了一下,不能得到任何工作。然后,我看到了,我可以用一个htaccess文件,但我必须调用别的东西(如htaccess.txt)。尝试,但不能让它的工作。后来我说我需要把它叫做别的东西然后改变了我的AccessFileName阅读。我已经到处看,但还是完全不知道该怎么做。

I have done research and found that my htaccess file will not work on my new Windows server. I have seen that I should be using web.config. Tried it and couldn't get anything to work. Then I saw that I can use an htaccess file, but I have to call it something else(like htaccess.txt). Tried that but couldn't get it to work. I read later that I needed to call it something else then change my "AccessFileName". I have looked everywhere but still have absolutely no idea how to do that.

任何帮助是极大AP preciated!我使用的是Godaddy的Windows服务器上。

Any help is greatly appreciated! I am using a Godaddy Windows server.

推荐答案

您确实需要使用一个web.config文件。您正在使用的GoDaddy的Windows服务器上运行一个名为IIS web服务器程序,它使用的web.config文件。 htaccess的被Apache HTTPD,这是一个不同的web服务器。

you do indeed have to use a web.config file. The GoDaddy Windows server you are using is running a webserver program called IIS, which uses web.config files. .htaccess is used by Apache HTTPD, which is a different web server.

的绊脚石,当你尝试过一次很可能打的是一个web.config文件具有显着不同的语法.htaccess文件。微软有一个有关设置web.config文件知识库文章,并在一个语法参考链接它

The stumbling block you were probably hitting when you tried it last time is that a web.config file has substantially different syntax than an .htaccess file. Microsoft has a Knowledge Base article about setting up a web.config file, and a syntax reference linked within it

这篇关于Windows服务器上的.htaccess文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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