ISAPI in folder
4 posts
• Page 1 of 1
- insideinside
- Posts: 16
- Joined: 12 Mar 2013, 09:10
ISAPI in folder
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.
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.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI in folder
Hello,
The rule
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
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
- insideinside
- Posts: 16
- Joined: 12 Mar 2013, 09:10
Re: ISAPI in folder
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:
You said about something that is disturbing, do not know what can be but my code looks like this:
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."
- 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."
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI in folder
Write an email to our support email. Provide some live links and, if possible, credentials for remote access.
Regards
Regards
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests