Azure IIS web配置重写url php

时间:2014-01-28 09:44:32

标签: php web-config rewrite

我对php的web.config重写规则有问题。这是我的规则

<?xml version="1.0"?>
<configuration>
<system.webServer>
    <rewrite>
      <rules>

        <rule name="Rewrite to index.php">
          <match url="^index" />
          <action type="Rewrite" url="index.php" />
        </rule>

        <rule name="Rewrite to blog.php">
          <match url="^blog" />
          <action type="Rewrite" url="blog.php" />
        </rule>

         <rule name="Rewrite to certain blog.php">
          <match url="^blog/([0-9]+)" />
          <action type="Rewrite" url="blog.php?id={R:1}" appendQueryString="false" />
        </rule>
      </rules>
    </rewrite>

</system.webServer>
</configuration>

当我去博客/ 16时,打开blog.php没有任何CSS。哪里有问题?

0 个答案:

没有答案