View Complete Thread
  • Re: How to create new file config using cmd

    Jan 17, 2019 06:51 AM|Jalpa Panchal|LINK

    Click on search and type powershell and right click on it and select run as administator and open it.

    Run this command:

     Add-WebConfigurationProperty -pspath 'iis:\sites\php2' -filter "system.webServer/rewrite/rules" -name "." -value @{name='Redirect www.website.com' ;patternSyntax='Wildcard';stopPrcessing='True'}

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.