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 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Pages redirect code
Author
Message |
Senseless
Newbie


Joined: 22 February 2011
Posts: 2
Posted: 22 February 2011 at 11:12am

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
 
Maddy4u
Newbie


Joined: 22 February 2011
Location: United States
Posts: 1
Posted: 22 February 2011 at 5:32pm

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 23 February 2011 at 4:59am

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
 
Senseless
Newbie


Joined: 22 February 2011
Posts: 2
Posted: 23 February 2011 at 5:35am

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
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 24 February 2011 at 3:01am

"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
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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