|
163 | 163 | <action type="Rewrite" url="index.php?action={R:1}" appendQueryString="true" />
|
164 | 164 | </rule>
|
165 | 165 |
|
166 |
| - <!-- Setup and update pages --> |
167 |
| - <rule name="Setup" stopProcessing="true"> |
168 |
| - <match url="^setup/(.*)" /> |
| 166 | + <!-- Setup without trailing slash --> |
| 167 | + <rule name="Setup Root" stopProcessing="true"> |
| 168 | + <match url="^setup$" /> |
169 | 169 | <action type="Rewrite" url="setup/index.php" appendQueryString="true" />
|
170 | 170 | </rule>
|
171 | 171 |
|
172 |
| - <rule name="Update" stopProcessing="true"> |
173 |
| - <match url="^update/(.*)" /> |
| 172 | + <!-- Update without trailing slash --> |
| 173 | + <rule name="Update Root" stopProcessing="true"> |
| 174 | + <match url="^update$" /> |
174 | 175 | <action type="Rewrite" url="update/index.php" appendQueryString="true" />
|
175 | 176 | </rule>
|
176 | 177 |
|
| 178 | + <!-- Administration pages (not API) --> |
| 179 | + <rule name="Admin Pages" stopProcessing="true"> |
| 180 | + <match url="^admin/(?!api/)(.*)$" /> |
| 181 | + <action type="Rewrite" url="admin/index.php" appendQueryString="true" /> |
| 182 | + </rule> |
| 183 | + |
177 | 184 | <!-- Administration API -->
|
178 | 185 | <rule name="Admin API" stopProcessing="true">
|
179 | 186 | <match url="^admin/api/(.*)" />
|
|
198 | 205 | <action type="Rewrite" url="api/index.php" appendQueryString="true" />
|
199 | 206 | </rule>
|
200 | 207 |
|
| 208 | + <!-- robots.txt --> |
| 209 | + <rule name="Robots" stopProcessing="true"> |
| 210 | + <match url="^robots\.txt$" /> |
| 211 | + <action type="Rewrite" url="robots.txt.php" appendQueryString="true" /> |
| 212 | + </rule> |
| 213 | + |
| 214 | + <!-- llms.txt --> |
| 215 | + <rule name="LLMS" stopProcessing="true"> |
| 216 | + <match url="^llms\.txt$" /> |
| 217 | + <action type="Rewrite" url="llms.txt.php" appendQueryString="true" /> |
| 218 | + </rule> |
| 219 | + |
201 | 220 | </rules>
|
202 | 221 | </rewrite>
|
203 | 222 |
|
|
0 commit comments