Topic: Help with local httpd.ini
|

|
| Author |
|
Saxon Newbie

Joined: 06 January 2010 Location: United Kingdom
Online Status: Offline Posts: 2
|
| Posted: 06 January 2010 at 9:24am | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 08 January 2010 at 3:15am | IP Logged
|
|
|
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 |
|
| |
Saxon Newbie

Joined: 06 January 2010 Location: United Kingdom
Online Status: Offline Posts: 2
|
| Posted: 08 January 2010 at 6:15am | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 08 January 2010 at 6:54am | IP Logged
|
|
|
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 |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|