mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 21:59:12 +01:00
IIS-config-example
Support for php7 ends - php8 is not supported
This commit is contained in:
parent
7b9b434f5d
commit
38f2f1b3ff
1 changed files with 38 additions and 0 deletions
38
web-example.config
Normal file
38
web-example.config
Normal file
|
@ -0,0 +1,38 @@
|
|||
/* https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
|
||||
https://blog.elmah.io/web-config-redirects-with-rewrite-rules-https-www-and-more/
|
||||
https://www.yaplex.com/blog/examples-iis-rewrite-rules/
|
||||
https://github.com/ScottReed/iis-redirect-generator
|
||||
|
||||
Microsoft is ending its efforts to bring PHP to Windows/IIS.
|
||||
Nno plan to support PHP 8.0 and above.
|
||||
|
||||
Self : https://www.mathias-jaekel.de/it/windows-server/php8-im-iis-unter-windows-2019-einrichten/
|
||||
|
||||
https://www.iis.net/downloads/microsoft/url-rewrite URL Rewriter */
|
||||
|
||||
|
||||
Example of web.config :
|
||||
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<directoryBrowse enabled="false" />
|
||||
|
||||
<rewrite>
|
||||
<rules>
|
||||
<rule name="HideIndex" stopProcessing="true">
|
||||
<match url="^(.*)$" />
|
||||
<conditions logicalGrouping="MatchAll">
|
||||
<add input="{HTTP_HOST}" pattern="^(.*)$" />
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
||||
</conditions>
|
||||
<action type="Rewrite" url="index.php/{R:1}" />
|
||||
<action type="Redirect" url="https://website.com/es/{R:0}" redirectType="Permanent" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
Reference in a new issue