This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="Remove trailing slash" stopProcessing="true"> | |
<match url="(.*)/$" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
</conditions> | |
<action type="Redirect" redirectType="Permanent" url="{R:1}" /> | |
</rule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="Add trailing slash" stopProcessing="true"> | |
<match url="(.*[^/])$" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
</conditions> | |
<action type="Redirect" redirectType="Permanent" url="{R:1}/" /> | |
</rule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="Convert to lower case" stopProcessing="true"> | |
<match url=".*[A-Z].*" ignoreCase="false" /> | |
<action type="Redirect" url="{ToLower:{R:0}}" redirectType="Permanent" /> | |
</rule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sitemap: https://swimburger.net/sitemap.xml | |
User-agent: * | |
Disallow: /umbraco |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@inherits UmbracoTemplatePage | |
@{ | |
Layout = null; | |
umbraco.library.ChangeContentType("text/plain"); | |
var rootUrl = Request.Url.GetLeftPart(UriPartial.Authority); | |
}Sitemap: @string.Format("{0}{1}", rootUrl, "/sitemap.xml") | |
User-agent: * | |
Disallow: /umbraco |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[Parameter(Mandatory=$true)] | |
[string] $Url, | |
[Parameter(Mandatory=$true)] | |
[int] $MaxPages, | |
[bool] $IncludeImages = $true, | |
[bool] $StayOnDomain = $true, | |
[bool] $IgnoreFragments = $true) | |
Add-Type -AssemblyName System.Web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function CrawlSitemap | |
{ | |
Param( | |
[parameter(Mandatory=$true)] | |
[string] $SiteMapUrl | |
); | |
$SiteMapXml = Invoke-WebRequest -Uri $SiteMapUrl -UseBasicParsing -TimeoutSec 180; | |
$Urls = ([xml]$SiteMapXml).urlset.ChildNodes | |
ForEach ($Url in $Urls){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function PurgeAllCloudflareCache{ | |
Param( | |
[parameter(Mandatory=$true)] | |
[string] $AdminEmail, | |
[parameter(Mandatory=$true)] | |
[string] $ApiKey, | |
[parameter(Mandatory=$true)] | |
[string] $ZoneId | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[Parameter(Mandatory = $true)] | |
[string] $ResourceGroupName, | |
[Parameter(Mandatory = $true)] | |
[string] $AppServiceName, | |
[Parameter(Mandatory = $true)] | |
[string] $SubscriptionId, | |
[Parameter(Mandatory = $true)] | |
[string] $RulePriority | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Directory | ForEach {$_.FullName + (" {0:N2} MB" -f ((Get-ChildItem $_.FullName -Recurse | Measure-Object -Property Length -Sum).Sum / 1MB))} |