This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Pages redirect code Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Senseless
Newbie
Newbie


Joined: 22 February 2011
Online Status: Offline
Posts: 2
Posted: 22 February 2011 at 11:12am | IP Logged Quote Senseless

My hosts do not seem able to provide an example code for redirecting a few pages within a domain to new pages. I have tried as below to work some code but I would be very grateful if someone could clear up my code and provide an example please.

My hosts have said I need to create an  httpd.ini and the server needs Isapi_Rewrite Version 2.

Is the code all I need to make the whole .ini file or is there more that experts presume I will use - a complete novice to this I am afraid:

[ISAPI_Rewrite]
RewriteRule /index\.html http\://www.domain.com/newpage1.php[I,RP]
RewriteRule /contact\.html http\://www.domain.com/newcontact.php[I,RP]

Thank you to anyone willing to help.

Back to Top View Senseless's Profile Search for other posts by Senseless
 
Maddy4u
Newbie
Newbie


Joined: 22 February 2011
Location: United States
Online Status: Offline
Posts: 1
Posted: 22 February 2011 at 5:32pm | IP Logged Quote Maddy4u

Hi Senseless: Another newbie here. I may have the same situation. I just requested ISAPI Rewrite support from my host company, who really doesn't seem that knowledgeable about the module. Anyway, finally got from them that it is ISAPI Rewrite 2, IIS 6, Windows Server and my site is developed with Drupal 6 and in a subfolder. I have been playing with httpd.ini & at first it didn't seem to do anything, but kept on & different things have caused all kinds of reactions, but none what I want, which is to get Clean URLs working. If I can get something working, I will post it.
Back to Top View Maddy4u's Profile Search for other posts by Maddy4u
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 23 February 2011 at 4:59am | IP Logged Quote Anton

Hello, Senseless.

Your rules look correct except the missed spaces before the flags section:

[ISAPI_Rewrite]
RewriteRule /index\.html http\://www.domain.com/newpage1.php [I,RP]
RewriteRule /contact\.html http\://www.domain.com/newcontact.php [I,RP]

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


Joined: 22 February 2011
Online Status: Offline
Posts: 2
Posted: 23 February 2011 at 5:35am | IP Logged Quote Senseless

Thank you for replying Anton

I did have the spacing in I think, could it have disappeaded on pasting to the forum?

I did notice that it did not work unless I made a space at the end of the flags as well. Am I imagining such things?

Regards
Phil

Back to Top View Senseless's Profile Search for other posts by Senseless
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 24 February 2011 at 3:01am | IP Logged Quote Anton

"I did notice that it did not work unless I made a space at the end of the flags as well."
- sounds highly unlikely. But if it does work for you this way, that's ok.

__________________
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