MVC Custom Error Pages
In previous article I shown you how to use log4net to log errors and redirect to custom error page. The problem in this approach is redirection. It’s not good for SEO to make redirection to custom error page.
Read more...In previous article I shown you how to use log4net to log errors and redirect to custom error page. The problem in this approach is redirection. It’s not good for SEO to make redirection to custom error page.
Read more...
MVC Custom error pages (log to database with Log4Net and notify by email)
There is a lot articles in web how to create and use custom error pages. I tried to implement one more solution and give you my example how to handle and log errors on website using Log4Net library and notify about error by email.
Search engines (like Google) see URL which ends with trail slash "/" and URL with default document (default.aspx) at the end of the same URL as two different pages with the same content, title, etc. So for SEO purposes it’s good to get rid of default page at the end of URL. Here is simple rule for URL Rewriter to sole this problem.
Read more...One of the good rules of SEO is to keep domain name of website the same. This rule include prefix www. To implement this rule we can use simple rule for URL Rewriter:
<rewrite> <rules> <rule name="Redirect to kitsula.com without www." stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^www.kitsula.com$" /> </conditions> <action type="Redirect" url="http://kitsula.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite>Read more...
Before the first deployment of new website you add Google Analytics tracking code on it and want to search engines start to indexing it. Of course you don't want to have any errors on first indexing. My experience shows that one's of important files that search engines trying to get are robots.txt and favicon.ico. First tells robots about possible restrictions, second - just an icon of website (which is shows in address bar of browser).
Read more...