windows2008+iis7常规伪静态设置

2025-10-29 23:37:25

1、进入主机面板,网站基本功能中点击伪静态设置

windows2008+iis7常规伪静态设置

2、下拉框中选择对应系统,点击确定即可

windows2008+iis7常规伪静态设置

3、然后进入需要设置伪静态的站点, 双击这个图标, 看就会看到下面的图片

windows2008+iis7常规伪静态设置

4、导入相应的伪静态的规则就行了,

THINKPHP的.htaccess是:

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>

如果还不行的就,就要修改站点根目录的Web.Config这个文件了。

提供一下范例给大家:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

<system.webServer>

<rewrite>

<rules>

<rule name="Rule Names" stopProcessing="true">

<match url="^index.html" />

<action type="Rewrite" url="/index.php" />

</rule>

<rule name="Imported Rule 2" stopProcessing="true">

<match url="^article/(.*).html" />

<action type="Rewrite" url="/index.php?article_id={R:1}" />

</rule>了http://m.fulinmenst.com/m/prod_view.aspx?TypeId=65&Id=182&Fid=t3:65:3&typefid=65

</rules>

</rewrite>

</system.webServer>

</configuration>

至此伪静态配置完成

windows2008+iis7常规伪静态设置

windows2008+iis7常规伪静态设置

windows2008+iis7常规伪静态设置

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢