-1

Routes are working, but when i start my site up i get

 localhost:57564/Default.aspx

Is there a simple fix for this?

Camilo Terevinto
  • 31,141
  • 6
  • 88
  • 120
Homme
  • 23
  • 8

1 Answers1

2

Use a rewrite rule in your web.config file.

<configuration>
   <system.webServer>
     <rewrite> 
    <rules>   
    <rule name="Default Redirect" stopProcessing="true">
            <match url="^Default\.aspx$" />
            <action type="Redirect" url="/" redirectType="Permanent" />
        </rule>
    </rules>
    </rewrite>
    </system.webServer>
</configuration>
ISHIDA
  • 4,700
  • 2
  • 16
  • 30