Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Forwarding from ’folder’ to page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
thegroover
Newbie
Newbie


Joined: 18 May 2009
Online Status: Offline
Posts: 6
Posted: 01 July 2010 at 9:47am | IP Logged Quote thegroover

Hi,
 
I want to foward URLs of this form e.g. www.mydomain.co.uk/news to a specific page e.g. www.mydomain.co.uk/folder/news.aspx
 
I have tried
 
[ISAPI_Rewrite]
 
RewriteRule /news.* http\:www.mydomain.co.uk/folder/News.aspx [I,RP]
 
and also
 
RewriteRule /news.* /folder/News.aspx [I,RP]
 
but neither work. Where am I going wrong?
 
Cheers
 
Phil
Back to Top View thegroover's Profile Search for other posts by thegroover
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 10489
Posted: 02 July 2010 at 3:21am | IP Logged Quote Anton

Please try it as follows:

[ISAPI_Rewrite]
RewriteRule /news.* http\://www.mydomain.co.uk/folder/News.aspx [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
thegroover
Newbie
Newbie


Joined: 18 May 2009
Online Status: Offline
Posts: 6
Posted: 02 July 2010 at 3:55am | IP Logged Quote thegroover

Hi Anton, thanks for the reply. I corrected the missing // but the rule still isn't working.
 
I'm suspecting that there is maybe a problem with the installation of isapi-rewrite. Is there some sort of 'hello world' rule that would confirm if isapi_rewrite is working properly?
 
Thanks in advance
 
Phil
Back to Top View thegroover's Profile Search for other posts by thegroover
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 10489
Posted: 02 July 2010 at 7:56am | IP Logged Quote Anton

You may put the following rule:

RewriteRule /test http\://www.google.com [I,RP]

Then make request to yoursite.com/test.
If you get the Google page, it works fine, otherwise it doesn't.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum