We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

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

    Jan 16, 2019 09:20 AM|Jalpa Panchal|LINK


    Try to access 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.