ISAPI in folder

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 16
Joined: 12 Mar 2013, 09:10

ISAPI in folder

11 Apr 2014, 16:36

How do I make ISAPI work with a file that is inside a folder?

I currently have the code:

RewriteEngine on
RewriteRule ^n/(.*)/?$ /n.asp?n=$1 [NC,L]

The CODE works fine when I access this way: http://www.mysite.com/n/news-url-slug


But now I need to work on the ISAPI file "/pagina.asp" that inside the folder "intranet"

The url would look like this: http://www.mysite.com/intranet/pagina/news-url-slug

In that file you asp page is within the intranet folder.


Can anyone help me? I tried this but did not work:

RewriteRule ^intranet/pagina/(.*)/?$ /intranet/pagina.asp?p=$1 [NC,L]

*My htaccess is in the root of the site.


Thank you for your attention.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: ISAPI in folder

13 Apr 2014, 22:59

Hello,

The rule
Code: Select all
RewriteRule ^intranet/pagina/(.*)/?$ /intranet/pagina.asp?p=$1 [NC,L]

should work for "/intranet/pagina/news-url-slug", mu suspicion is that there's some other rule that interferes. Did you try to enable logging to see what is going on? Please, see FAQ - http://www.helicontech.com/forum/10648-FAQ.html for logging info.

Regards

User avatar
Posts: 16
Joined: 12 Mar 2013, 09:10

Re: ISAPI in folder

14 Apr 2014, 10:24

It really is not working. I put in the root of my site your httpd.conf file with the code below but the log file was not created:

Code: Select all
#enabling rewrite.log
RewriteLogLevel 9
#enabling error.log
LogLevel debug


You said about something that is disturbing, do not know what can be but my code looks like this:

Code: Select all
RewriteEngine on
RewriteRule ^n/(.*)/?$ /n.asp?n=$1 [NC,L]
RewriteRule ^nn/(.*),(.*)/?$ /nn.asp?idn=$1&t=$2 [NC,L]
RewriteRule ^intranet/pagina/(.*)/?$ /intranet/pagina.asp?p=$1 [NC,L]


The first two rules are working but not the third.

The error when I try to access the page is this: "The system can not find the file specified."

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: ISAPI in folder

14 Apr 2014, 17:05

Write an email to our support email. Provide some live links and, if possible, credentials for remote access.

Regards

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests