iis伪静态时,前端栏目页和文章页打开均是404错误 迅睿框架 更新 2022-01-07 09:15:12 15313173535 PHP程序里面伪静态时,前端栏目页和文章页打开均是404错误,只有首页可以正常打开访问,是否根目录的web.config这个文件配置有问题?如何配置呢?
<?xml version="1.0" ?> <rules> <rule name="XunRuicms 手机站 IIS伪静态" stopProcessing="true"> <match url="^mobile/(.*)$" ignoreCase="false"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/> </conditions> <action type="Rewrite" url="/mobile/index.php"/> </rule> <rule name="XunRuicms 电脑站 IIS伪静态" stopProcessing="true"> <match url=".(js|ico|gif|jpe?g|bmp|png|css)$" negate="true"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/> </conditions> <action type="Rewrite" url="/index.php"/> </rule> </rules>