Friday, April 4, 2014

301 redirect using web.config

To do 301 permanent redirect add following line of codes in web.config.


<configuration>
<system .webserver>
 <rewrite>
      <rules>
        <rule name="Redirect domain.com to www" patternsyntax="Wildcard" stopprocessing="true">
          <match url="*">
          <conditions>
            <add input="{HTTP_HOST}" pattern="yourdomain.com">
          </add></conditions>
          <action type="Redirect" url="http://www.yourdomain.com/{R:0}">
        </action></match></rule>
      </rules>
    </rewrite>
</system .webserver>
</configuration>
Submit this story to DotNetKicks

Read more...

Saturday, January 18, 2014

How do I enable HTTP PUT and DELETE for ASP.NET MVC

  1. GO to Handler Mappings in your IIS Manager
  2. Find ExtensionlessUrlHandler-Integrated-4.0
  3. double click it. 
  4. Click Request Restrictions... button and on Verbs tab, add both DELETE and PUT


Remove WebDav from "Modules" and from "Handler Mappings"


Modules:
                WebDAVModule, %windir%\System32\inetsrv\webdav.dll, Native, Inherited

Handler Mappings:

                WebDAV, *, Enabled, Unspecified, WebDAVModule, Inherited

Then Restart IIS

It results in a Web.Config change of:

  <system.webServer>
        <modules>
            <remove name="WebDAVModule" />
        </modules>
        <handlers>
            <remove name="WebDAV" />
        </handlers>
  </system.webServer>

 
Submit this story to DotNetKicks

Read more...

Sunday, November 3, 2013

What is Affiliate Marketing - How to make Money Online

Every day more and more people are looking for different ways to earn extra money, or to earn a living, both in the online and offline worlds people are starting realize that having a "job" and working 40 hours a week for 40 years is not the ideal way to live. And it is true working like an animal make no sense anymore when there are many opportunities available to make money online.There are many ways to go for Extra money, but in case of online work You can Work from Home and Make Money online through Internet Jobs or By doing Affiliate Marketing.

Affiliate marketing is a type of performance-based marketing in which a business rewards one or more affiliates for each visitor or customer brought by the affiliate's own marketing efforts. 

As we have some blog or web site with good number of Visitors we can make decent amount of money using Affiliate Marketing.Your affiliate can be anything from a website or e-newsletter or blog or squidoo lense or facebook page anything which can be shared with people online, it could also be a shopping portal, to name a few. Many online websites and shopping portals uses Affiliate program, where they allow any one to do advertising online using Affiliated link, and the company pays the affiliate a 5%-20% commission on sales. 

 


Viral Marketing: is a Marketing phenomenon that facilitates and encourages people to pass along a marketing message. Viral Marketing basically uses replication of some product or brand with use of  either Images, Videos, text ads and continuously making people aware about the product or brand.
One of the Effective way to reach many people is Viral Marketing. Funny Videos, Funny images, relative content or publishing interesting article are ways for Viral Marketing, making more and more people aware about the Brand.


Submit this story to DotNetKicks

Read more...