By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

Problems in URL rewriting

100+
P: 106
Hi

I m developing site for my client using asp.net 2.0. He asked me for URL rewriting. which I have done using Intelligencia.UrlRewriter.RewriterHttpModule rewriting module.

I write the follwing
Expand|Select|Wrap|Line Numbers
  1.  <rewriter> 
  2. <rewrite url="page=agency/(.+)" to="~/agencies/$1.aspx"/>
  3. <rewrite url="page=school/(.+)" to="~/schools/$1.aspx"/>
  4. <rewrite url="page=Searchdetail/(.+)&amp;(.+)&amp;(.+)" to="~/agencies/SearchDetail.aspx?id=$1&amp;AppJobID=$2&amp;JobPostID=$3"/>
  5. <rewrite url="page=ViewResume/(.+)&amp;(.+)&amp;(.+)" to="~/agencies/ViewResume.aspx?teacherid=$1&amp;AppJobID=$2&amp;JobPostID=$3"/>
  6. <rewrite url="page=EditAlerts/(.+)" to="~/agencies/EditAlerts.aspx?alertId=$1"/>
  7. </rewriter>
  8.  
  9. Here All the urls are maped to the specified ones when I m working on my local system but when I upload the site to the server then then page related to the following mapping rules are not working.
  10.  
  11. <rewrite url="page=Searchdetail/(.+)&amp;(.+)&amp;(.+)" to="~/agencies/SearchDetail.aspx?id=$1&amp;AppJobID=$2&amp;JobPostID=$3"/>
  12. <rewrite url="page=ViewResume/(.+)&amp;(.+)&amp;(.+)" to="~/agencies/ViewResume.aspx?teacherid=$1&amp;AppJobID=$2&amp;JobPostID=$3"/>
  13.  
I don't know what to do now. Please some help
looking forward for quick help
Jun 24 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.