Need help with Ionic rewriter in ASP.NET -


rewriterule ^/main/mypage$ / [i] rewriterule ^/main/mypage/$ /main/general/mypage.aspx?id=$1&gid=$2 [i] 

above's ionic entry in .ini file.

now, when write following in code file , run it says "file not found". what's wrong?

str = str.replace("#reset#", "<a href='" + qab.con.mysite + "mypage?myid=" + id + "&gd=" + gid + "'>click here</a>"); 

something's wrong part:-

"mypage?myid=" + userid + "&gd=" + gid + " 

because when type here full name of page, is, /main/general/mypage.aspx instead of above part runs right.

how can fixed?

[edit] made changes in "str" follows. same problem persists.

"mypage/" + id + "/" + gid + " 

try removing end slash, e.g., change

rewriterule ^/main/mypage/$ /main/general/mypage.aspx?id=$1&gid=$2 [i]  

to

rewriterule ^/main/mypage$ /main/general/mypage.aspx?id=$1&gid=$2 [i]  

cheers tigger


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -