小编Arj*_*jen的帖子

如何排除IIS URL重写的目录?

我有一个domain.com/index.php和一个友好的网址规则来重定向domain.com/index.php?s=?要求.我使用带有URL重写附加组件的IIS webserver.

以上工作正常.但是,对admin目录的请求存在问题...

我还有domain.com/admin/cloud/index.php,有时需要获取或发送数据(通过Ajax).当规则处于活动状态时,数据不可用,当我删除上述规则时,数据可用.

如何使用上面的网址规则并排除域名(或)域名内容中的所有其他请求?

这是我目前的规则集:

<rule name="RedirectUserFriendlyURL1" stopProcessing="true">
    <match url="^index\.php$" />
    <conditions>
        <add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
        <add input="{QUERY_STRING}" pattern="^s=([^=&amp;]+)$" />
    </conditions>
    <action type="Redirect" url="{C:1}" appendQueryString="false" />
</rule>
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
    <match url="^([^/]+)/?$" />
    <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="index.php?s={R:1}" />
</rule>
Run Code Online (Sandbox Code Playgroud)

我尝试了很多方法,包括路径信息......但没有成功.也许有人可以暗示一下?

谢谢!

iis url iis-7 rewrite url-rewrite-module

13
推荐指数
1
解决办法
2万
查看次数

CSS:如何在背景图像上创建线条或点?

我不知道效果的名称,但这里有一个例子:http: //www.uiueux.com/wp/flowfolio/

如果你仔细观察,那么你会看到一个干净的背景图像 - 因为它看起来是第二个背景 - 带点.点不是图像的一部分.

  • 这个效果的名称是什么?

  • 如何用点创建这样的背景?

  • 这也可以用对角线而不是点来完成吗?

非常感谢你!

css background image

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

background ×1

css ×1

iis ×1

iis-7 ×1

image ×1

rewrite ×1

url ×1

url-rewrite-module ×1