عیب یابی سایت های ASP.NET5 در IIS
بهبود SEO در ASP.NET MVC
<system.webServer> <rewrite> <rules> <rule name="Enforce WWW" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{CACHE_URL}" pattern="^(.+)://(?!www)(.*)" /> </conditions> <action type="Redirect" url="{C:1}://www.{C:2}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer>
<system.webServer> <rewrite> <rules> <rule name="SEO - Lower case" stopProcessing="false"> <match url="(.*)" ignoreCase="false" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{R:1}" pattern="[A-Z]" ignoreCase="false" /> </conditions> <action type="Rewrite" url="_{ToLower:{R:1}}" /> </rule> </rules> </rewrite> </system.webServer>
خلاصه آن:
<!-- SEO rules (from: http://www.seomoz.org/blog/what-every-seo-should-know-about-iis#chaining) --> <!-- SEO | Section 1 | Whitelist --> <rule name="Whitelist - Resources" stopProcessing="true"> <match url="^(?:css/|scripts/|images/|install/|config/|umbraco/|umbraco_client/|base/|webresource\.axd|scriptresource\.axd|__browserLink|[^/]*/arterySignalR/.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> <action type="None" /> </rule> <!-- SEO | Section 2 | Rewrites (chaining) --> <rule name="SEO - Remove default.aspx" stopProcessing="false"> <match url="(.*?)/?default\.aspx$" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> </conditions> <action type="Rewrite" url="_{R:1}" /> </rule> <rule name="SEO - Remove trailing slash" stopProcessing="false"> <match url="(.+)/$" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> </conditions> <action type="Rewrite" url="_{R:1}" /> </rule> <rule name="SEO - Lower case" stopProcessing="false"> <match url="(.*)" ignoreCase="false" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{R:1}" pattern="[A-Z]" ignoreCase="false" /> </conditions> <action type="Rewrite" url="_{ToLower:{R:1}}" /> </rule> <!-- SEO | Section 3 | Redirecting --> <rule name="SEO - HTTP canonical redirect" stopProcessing="true"> <match url="^(_*)(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="true"> <add input="{HTTP_HOST}" pattern="^www\.(.*)" /> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{SERVER_PORT}" pattern="80" /> </conditions> <action type="Redirect" url="http://{C:1}/{R:2}" /> </rule> <rule name="SEO - HTTPS canonical redirect" stopProcessing="true"> <match url="^(_*)(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="true"> <add input="{HTTP_HOST}" pattern="^www\.(.*)" /> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{SERVER_PORT}" pattern="443" /> </conditions> <action type="Redirect" url="http://{C:1}/{R:2}" /> </rule> <rule name="SEO - Non-canonical redirect" stopProcessing="true"> <match url="^(_+)(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> </conditions> <action type="Redirect" url="{R:2}" /> </rule> <!-- // SEO rules -->
کتاب Blazor- A Beginners Guide
The book covers these all-important topics:
- What Blazor is
- The problems it solves and how it solves them
- Strategies for moving to Blazor from previous ASP.NET generations and JavaScript
- Ways to get more out of Blazor by enhancing it with Telerik UI for Blazor to shorten development cycles and benefit your entire team
This web app allows you to create a visual representation of your BenchmarkDotNet console results. You can conveniently copy the generated chart to your clipboard, save it as a PNG image, or share it through a URL.
Every day millions of users are commuting on the electronic highway. For you as a web developer you want to ensure that your website is adapted to the needs of the modern user and that you're not putting up road blocks, forcing users to take side roads.
Using modern web standards you can remove these road blocks and optimise your website to accommodate all users regardless of the browser they're using.
سلام
(نوع stub همانند فریم ورک mock میباشد )
تعریفی که از stup تو راهنماش اومده با مطلبی که شما ذکر کردید متفاوته
Martin Fowler’s article Mocks aren’t Stubs compares and contrasts the underlying principles of Stubs and Mocks. As outlined in Martin Fowler’s article, a stub provides static canned state which results in state verification of the system under test, whereas a mock provides a behavior verification of the results for the system under test and their indirect outputs as related to any other component dependencies while under test