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: Help with ’local’ httpd.ini Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Saxon
Newbie
Newbie


Joined: 06 January 2010
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 06 January 2010 at 9:24am | IP Logged Quote Saxon

I am completing a site restructure on a shared hosting server and plan to redirect 'oldstructure\oldfilename.htm' to 'newstructure\newfilename.htm. These will all be basic static pages, and I plan to keep things simple by entering all changes line by line, something like:

[ISAPI_Rewrite]
RewriteRule /mypage1 /newfolder/this-is-my-first-page.htm [I,L]
RewriteRule /subdirectory/mypage2 /newfolder/newsubfolder/this-is-my-second-page.htm [I,L]
RewriteRule /mypage3 /newfolder/this-is-my-third-page.htm [I,L]

(The structure changes are more complex than this, otherwise I know I could use wildcards). My hosting provider tells me that 'Isapi_Rewrite 2 is installed on your server'. I have assumed that all locations are relative to Root.

1. Am I right to think this will produce SE friendly '301 permanently moved' on the specified pages?

2. I read somewhere that a local httpd.ini file overwrites the commands held in the server's own httpd.ini, and so a list of common commands need to be included in the local (wwwroot folder) file. Is this correct, or can I just enter my own redirect commands only?

Many thanks.
Back to Top View Saxon's Profile Search for other posts by Saxon Visit Saxon's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 08 January 2010 at 3:15am | IP Logged Quote Anton

1. To perform permanent redirect with ISAPI_Rewrite RP flag is needed:

[ISAPI_Rewrite]

RewriteRule /mypage1 /newfolder/this-is-my-first-page.htm [I,L,RP]
RewriteRule /subdirectory/mypage2 /newfolder/newsubfolder/this-is-my-second-page.htm [I,L,RP]
RewriteRule /mypage3 /newfolder/this-is-my-third-page.htm [I,L,RP]

2. If you need the rules to be applied to the specific site only, they should be put into the httpd.ini in the root of this site.

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


Joined: 06 January 2010
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 08 January 2010 at 6:15am | IP Logged Quote Saxon

Understood. Thank you 

A test page worked perfectly.

This redirect method is one of those things that appears to be horribly complicated. But once you have done it successfully, it suddenly becomes extremely simple and you are left wondering what all the fuss was about!

Can I suggest that a separate 'simple' set of instructions for nuggets like me would be helpful? Trying to makes sense of the full help file is scary!
Back to Top View Saxon's Profile Search for other posts by Saxon Visit Saxon's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 08 January 2010 at 6:54am | IP Logged Quote Anton

Well, we discuss some general issues/problems in our FAQ.
We also try to cover the most frequent questions in our blog articles.
But if you have any additional questions, please don't hesitate to ask them here or via email.

__________________
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