Skip to content
Snippets Groups Projects
Commit d4419d0e authored by Susanne Moog's avatar Susanne Moog
Browse files

[TASK] Add rules for versionNumberInFilename to web.config

Resolves: #86943
Releases: master, 9.5
Change-Id: I1092442a963d7ba6e2282ed8d4c4bce360be8afc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63614


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent ed892fa8
......@@ -51,6 +51,14 @@
<match url="^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php|favicon\.ico)$" />
<action type="None" />
</rule>
<rule name="TYPO3 - Version Number in File Name (if set)" stopProcessing="true">
<match url="^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$" 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="{R:1}.{R:3}" />
</rule>
<rule name="TYPO3 - If the file/directory does not exist => Redirect to index.php." stopProcessing="true">
<match url="^.*$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment