locked
URL Rewrite (Intelligencia.UrlRewriter) RRS feed

  • Question

  • User944339287 posted

    Hi guys,

    Below is my web.config and it's working fine to rewrite login.aspx to testing.aspx

    But error occured (The resource cannot be found) when i changed <rewrite url="~/login.aspx" to="~/testing.aspx" /> to <rewrite url="~/login.aspx" to="~/LoginScreen" />

    please advise. TQ

    <configuration>
    
      <configSections>
        <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
      </configSections>
      
      <system.web>
          
        <httpModules>
          <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
        </httpModules>
        
      </system.web>
        
      <rewriter>
        <rewrite url="~/login.aspx" to="~/testing.aspx" />
      </rewriter>
      
    </configuration>


    Saturday, October 12, 2013 9:10 PM

All replies

  • User398825048 posted

    are you missing .aspx in your page url i.e in LoginScreen??

    Monday, October 14, 2013 6:20 AM
  • User944339287 posted

    Hi,

    I found that the problem is my project name. everything is fine once i remove period from the website name.

    previously is myWebproject.test

    now changed to myWebproject_test

    Monday, October 14, 2013 6:25 AM