
问:FTP IP:jywh2019.gotoftp3.com FTP ID:jywh2019,麻烦看看数据库还有没有备份
答:您好,
问:Apache规则做转换
RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule !.(js|ico|gif|jpe?g|bmp|png|css)$ /index.php [NC,L]
答:您好,
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url=".*\\.(?:gif|ico|jpg|png|bmp|css|js|jpeg)" />
<action type="Rewrite" url="{R:0}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^(?!/index.php)(?!/.php)(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<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/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
您可使用此规则保存在/www/web.config下试试,非常感谢您长期对我司的支持!谢谢!


