update rewrite rules

This commit is contained in:
printempw 2016-07-24 14:14:37 +08:00
parent ca6490daf2
commit 115b12029a
2 changed files with 23 additions and 1 deletions

View File

@ -1,4 +1,6 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
RewriteRule ^.*$ index.php [L]

20
web.config Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
For rewrite to work install URL Rewrite Module via Web Platform Installer
-->
<rewrite>
<rules>
<rule name="bss" patternSyntax="Wildcard">
<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" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>