mirror of
				https://github.com/getgrav/grav.git
				synced 2025-10-30 18:05:52 +01:00 
			
		
		
		
	Extensive update.
Simplify a few blocks into one.
This commit is contained in:
		| @@ -17,28 +17,12 @@ | |||||||
|                     </conditions> |                     </conditions> | ||||||
|                     <action type="Rewrite" url="index.php" /> |                     <action type="Rewrite" url="index.php" /> | ||||||
|                 </rule> |                 </rule> | ||||||
|                 <rule name="user_accounts" stopProcessing="true"> |  | ||||||
|                     <match url="^user/accounts/(.*)$" ignoreCase="false" /> |  | ||||||
|                     <action type="Redirect" url="error" redirectType="Permanent" /> |  | ||||||
|                 </rule> |  | ||||||
|                 <rule name="user_config" stopProcessing="true"> |  | ||||||
|                     <match url="^user/config/(.*)$" ignoreCase="false" /> |  | ||||||
|                     <action type="Redirect" url="error" redirectType="Permanent" /> |  | ||||||
|                 </rule> |  | ||||||
|                 <rule name="user_error_redirect" stopProcessing="true"> |                 <rule name="user_error_redirect" stopProcessing="true"> | ||||||
|                     <match url="^user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$" ignoreCase="false" /> |                     <match url="^(user)/(.*)\.(txt|md|yaml|php|pl|py|cgi|twig|sh|bat)$" ignoreCase="false" /> | ||||||
|                     <action type="Redirect" url="error" redirectType="Permanent" /> |                     <action type="Redirect" url="error" redirectType="Permanent" /> | ||||||
|                 </rule> |                 </rule> | ||||||
|                 <rule name="cache" stopProcessing="true"> |                 <rule name="ignore_folders" stopProcessing="true"> | ||||||
|                     <match url="^cache/(.*)" ignoreCase="false" /> |                     <match url="^(.git|cache|bin|logs|backup|webserver-configs|tests)/(.*)" ignoreCase="false" /> | ||||||
|                     <action type="Redirect" url="error" redirectType="Permanent" /> |  | ||||||
|                 </rule> |  | ||||||
|                 <rule name="bin" stopProcessing="true"> |  | ||||||
|                     <match url="^bin/(.*)$" ignoreCase="false" /> |  | ||||||
|                     <action type="Redirect" url="error" redirectType="Permanent" /> |  | ||||||
|                 </rule> |  | ||||||
|                 <rule name="backup" stopProcessing="true"> |  | ||||||
|                     <match url="^backup/(.*)" ignoreCase="false" /> |  | ||||||
|                     <action type="Redirect" url="error" redirectType="Permanent" /> |                     <action type="Redirect" url="error" redirectType="Permanent" /> | ||||||
|                 </rule> |                 </rule> | ||||||
|                 <rule name="system" stopProcessing="true"> |                 <rule name="system" stopProcessing="true"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user