Help me? Config IIRF in Virtual Directory

Topics: Developer Forum, Project Management Forum, User Forum
Dec 30, 2010 at 1:41 AM

Help me? Config Virtual Directory in Web.

I have domain

Config Virtual Directory "Home" in

RewriteRule ^/Home/Topic/(\d+)/(.*)\/$     /Topic.asp?ID=$1&Title=$2 [I,L]
RewriteRule ^/Home/Topic/(\d+)/(.*)$     /Topic.asp?ID=$1&Title=$2 [I,L]

Config Error





Jan 3, 2011 at 2:58 PM



English desired



Jan 26, 2011 at 3:45 AM

I created virtual directory in IIS is "Home" in the domain name ""

Config IIRF

RewriteRule ^/Home/Topic/(\d+)/(.*)\/$     /Topic.asp?ID=$1&Title=$2 [I,L]
RewriteRule ^/Home/Topic/(\d+)/(.*)$     /Topic.asp?ID=$1&Title=$2 [I,L]

When logging URL is: [I,L] --> 

IIRF be the result of:

Jan 26, 2011 at 6:34 AM

Help Me!

Jan 31, 2011 at 1:30 PM

Sorry, I am not clear on what problem you are trying to solve.

Apparently you want to rewrite from a form like

/Home/Topic/nnn/xxx , where nnn is replace with a number and xxx is replaced with anything, and you want to
rewrite that into a form like ... I don't know?  /Home/Topic.asp?  /Temp/Topic.asp?  /Temp/Home.asp?   /Topic.asp?

I don't know - your text and your pictures don't agree. 

One problem you may be running into is, you cannot rewrite a request out of the VDIR or application. 
If you have /vdir1 and /vdir2, you cannot rewrite /vdir1/foo into /vdir2/bar.   In your case, you cannot rewrite from
/Home/Whatever into /Temp/Somethingelse, if /Home and /Temp are separate Vdirs.  Also, You cannot rewrite from
/Home/Something to /Topic.asp, if /Home is a separate vdir from the root vdir.

I have no idea if this is your problem or not, I'm not clear on what you are doing.

Good luck.