Skip to content

Commit 391281e

Browse files
committed
fix: corrected IIS rewrite rules, closes #3600
1 parent 7da069b commit 391281e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

phpmyfaq/src/Bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
}
9292

9393
//
94-
// Check if config/database.php exist -> if not, redirect to installer
94+
// Check if config/database.php exist -> if not, redirect to the installer
9595
//
9696
if (!file_exists(PMF_CONFIG_DIR . '/database.php') && !file_exists(PMF_LEGACY_CONFIG_DIR . '/database.php')) {
9797
$response = new RedirectResponse('./setup/');

phpmyfaq/web.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@
165165

166166
<!-- Setup without trailing slash -->
167167
<rule name="Setup Root" stopProcessing="true">
168-
<match url="^setup$" />
168+
<match url="^setup/(.*)" />
169169
<action type="Rewrite" url="setup/index.php" appendQueryString="true" />
170170
</rule>
171171

172172
<!-- Update without trailing slash -->
173173
<rule name="Update Root" stopProcessing="true">
174-
<match url="^update$" />
174+
<match url="^update/(.*)" />
175175
<action type="Rewrite" url="update/index.php" appendQueryString="true" />
176176
</rule>
177177

0 commit comments

Comments
 (0)