ISAPI Rewrite Syntax
6 posts
• Page 1 of 1
ISAPI Rewrite Syntax
Can someone help me with the syntax to accomplish the following, I'm in a time crunch and need to get this working asap:)
Current URL is xyz.com/folder
I need to keep the URL xyz.com/folder but forward to an IP address such as 200.14.32.3/folder. Please help:)
Current URL is xyz.com/folder
I need to keep the URL xyz.com/folder but forward to an IP address such as 200.14.32.3/folder. Please help:)
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI Rewrite Syntax
Hello,
It's called proxying.
You'd need:
Regards
Andrew
It's called proxying.
You'd need:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^xyz\.com$ [NC]
RewriteRule ^folder$ http:\\200.14.32.3/folder [NC,P,L]
Regards
Andrew
Re: ISAPI Rewrite Syntax
This is what I came up with and I placed in in the online-graduate-degree directory. Is this correct? I'm getting a Directory Listing Denied but I should be getting a login screen since I checked the IP address URL. Am I doing something incorrectly.
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^harrisburgu\.edu$ [NC]
RewriteRule ^online-graduate-degrees$ http:\\166.78.104.118/online-graduate-degree [NC,P,L]
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^harrisburgu\.edu$ [NC]
RewriteRule ^online-graduate-degrees$ http:\\166.78.104.118/online-graduate-degree [NC,P,L]
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI Rewrite Syntax
Maybe the rules simply doesn't work.
Would you, please, enable logging and provide us with rewrite.log with a testing request. Logging issues described in FAQ (http://www.helicontech.com/forum/10648-FAQ.html)
Regards
Andrew
Would you, please, enable logging and provide us with rewrite.log with a testing request. Logging issues described in FAQ (http://www.helicontech.com/forum/10648-FAQ.html)
Regards
Andrew
Re: ISAPI Rewrite Syntax
Andrew, it will not let me attach the log. I have changed the extension to .txt and still won't allow upload. I'm linking to the log from skydrive so you can look at it.
https://skydrive.live.com/redir?resid=395C53A67C80EA80!2847&authkey=!ACz7so_-VHm9RLs
Thanks for the help.
Maybe I'm misunderstanding, but it looks like it goes through each file in the site to try to match the pattern, is this correct? Do I need anything in the local folder such as an index page or should this re-direct (proxy) without anything in the folder.
https://skydrive.live.com/redir?resid=395C53A67C80EA80!2847&authkey=!ACz7so_-VHm9RLs
Thanks for the help.
Maybe I'm misunderstanding, but it looks like it goes through each file in the site to try to match the pattern, is this correct? Do I need anything in the local folder such as an index page or should this re-direct (proxy) without anything in the folder.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI Rewrite Syntax
Here's an extract:
The last lines seems to tell everything. All you need is just '/' at the end.
Technically, not 'each file', but each incoming request. No, you don't anything there.
- Code: Select all
(2) init rewrite engine with requested uri /online-graduate-degrees/
(1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
(3) applying pattern '^(.*)$' to uri 'online-graduate-degrees/'
(4) RewriteCond: input='C:\Inetpub\vhosts\harrisburgu.net\httpdocs\online-graduate-degrees\' pattern='!!-f' => matched
(4) RewriteCond: input='C:\Inetpub\vhosts\harrisburgu.net\httpdocs\online-graduate-degrees\' pattern='!!-d' => not-matched
(1) Htaccess process request c:\inetpub\vhosts\harrisburgu.net\httpdocs\online-graduate-degrees\.htaccess
(3) applying pattern '^online-graduate-degrees$' to uri 'online-graduate-degrees/'
The last lines seems to tell everything. All you need is just '/' at the end.
Maybe I'm misunderstanding, but it looks like it goes through each file in the site to try to match the pattern, is this correct? Do I need anything in the local folder such as an index page or should this re-direct (proxy) without anything in the folder.
Technically, not 'each file', but each incoming request. No, you don't anything there.
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 25 guests