1
Reply

URL-Rewriting(with out extension just want to display variable name)

nidhi singhal

nidhi singhal

14 years ago
3.1k

Plz help me out in URL rewriting(Actually i have seen many sites and many solutions but that doesnt match with my requirements.
Actaully my requirement is
If i am on the www.somevent.com/Associations.aspx
and there are so many Associtaions i have with name and image If i click one of them image or link name then it should go to www.someevnt.com/AssociationName only
AssociationName is variable accordingly to the link
Actually i am using some approach but it didnt make any help to me still there is something which i have applied for that::------

I just added the following to web.config file and dll for that and there is u will see a regular expression which i have many permutaions and combinations to get that output but resource cant not be displayed problem occurs.
 <modulesSection>
    <rewriteModule>
      <rewriteOn>true</rewriteOn>
      <rewriteRules>
        <rule source="(^[A-Z][a-z](?!.aspx))"  destination="AssociationDetail.aspx?name=$1"/>
        </rewriteRules>
    </rewriteModule>
  </modulesSection>

Answers (1)