简体   繁体   English

在MS IIS v6 Web服务器上安装WordPress 3.0.1

[英]WordPress 3.0.1 Install on MS IIS v6 Web Server

I have just installed WordPress 3.0.1 running on MS IIS 6 Windows Server that I developed from my Mac OS X platform. 我刚刚安装了从Mac OS X平台开发的MS IIS 6 Windows Server上运行的WordPress 3.0.1。

Note that my WordPress setup is under the following directory structure: 请注意,我的WordPress设置位于以下目录结构下:

c:\\inetpub\\wwwroot\\MYSITE c:\\ inetpub \\ wwwroot \\ MYSITE

The problem here is though, with the site up and running, it can't seem to find any of my pages like "About Us" even though I have set them up correctly within the permalinks side of things. 但是,这里的问题是,随着站点的启动和运行,即使我在事物的永久链接方面进行了正确设置,似乎也找不到“关于我们”之类的任何页面。

I am getting: 我正进入(状态:

HTTP Error 404 - File or directory not found. HTTP错误404-找不到文件或目录。 Internet Information Services (IIS) Internet信息服务(IIS)

Is it something to do with permalinks/.htaccess file not working on MS II6? 这与permalinks / .htaccess文件在MS II6上不起作用有关吗?

.htaccess files are for Apache HTTPD. .htaccess文件适用于Apache HTTPD。 They don't work with IIS. 它们不适用于IIS。 For IIS you need to create a "Web.config" file and add the following lines to it. 对于IIS,您需要创建一个“ Web.config”文件,并在其中添加以下几行。

<rewrite>
    <rules>
        <rule name="Main Rule" stopProcessing="true">
            <match url=".*" />
            <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            </conditions>
            <action type="Rewrite" url="index.php" />
        </rule>
    </rules>
</rewrite>

DOESN'T WORK IN IIS6: 在IIS6中不起作用:

As Kev points out, this code doesn't work in IIS6. 正如Kev所指出的,此代码在IIS6中不起作用。 From a little googling I understand that URL rewriting is not at all possible with IIS6. 通过一点点的搜索,我了解到IIS6根本无法重写URL。 If anyone knows another way, please update here. 如果有人知道另一种方法,请在此处更新。

POSSIBLE ALTERNATIVE FOR IIS6? IIS6是否可行?

Is it possible to use ISAPI_Rewrite or UrlRewriter.NET in this situation? 在这种情况下可以使用ISAPI_RewriteUrlRewriter.NET吗? Can someone clarify on this? 有人可以澄清吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM