Really need help with 301 redirects!

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 5
Joined: 11 Jul 2013, 10:55

Really need help with 301 redirects!

11 Jul 2013, 11:15

Hi there,

I have site that I just launched and it is running on a Windows server - not something I am familiar with. I contacted the hosting company and they told me that they have Isapi_rewrite installed and that I should do the redirects using a .htaccess file. I have done .htaccess redirects before, but not on a Windows server. I have been looking around for the right rule to write and have been trying all sorts of different things with no success.

Here's a page from the old site:
http://www.lincolncenterobgyn.com/gynofaq.htm

Here's the new page:
http://www.lincolncenterobgyn.com/index ... ynecology/

I would be very grateful for some assistance with what rule I am supposed to use.

thanks! :)

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Really need help with 301 redirects!

11 Jul 2013, 15:28

Hello,

Lets try to see if we can do the testing rule from FAQ - http://www.helicontech.com/ape/doc/mod_ ... m#LogLevel
Then try to do:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^www\.lincolncenterobgyn\.com$ [NC]
RewriteRule ^gynofaq\.htm http://www.lincolncenterobgyn.com/index.php/frequently-asked-questions-gynecology/ [NC,R=301,L]


Regards
Andrew

User avatar
Posts: 5
Joined: 11 Jul 2013, 10:55

Re: Really need help with 301 redirects!

12 Jul 2013, 10:39

Andrew, thanks for helping me, but I am afraid that with Isapi_rewrite I am a first-class newbie!

I have no idea how to test if the Isapi_rewrite that is installed with my client's hosting is working correctly or not. I need to contact the hosting company - should I send them the link you provided about the LogLevel? Their control panel is minimal at best - I don't seem to be able to access very much information -it's quite frustrating.

Just for the heck of it, I tried the code you provided and it didn't work- I'm thinking it the hosting's problem, so any guidance on what I am supposed to ask them would be very helpful.

thank you!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Really need help with 301 redirects!

12 Jul 2013, 12:09

I'm afraid I was too quick to send you that link. Try here http://www.helicontech.com/forum/10648-FAQ.html.
Basically, you try the following in your .htaccess file(which you should have access to):

Code: Select all
RewriteEngine on
RewriteRule .* - [F]


It should result in 403 Forbidden for any request to that site. If you do get 403 - ISAPI_Rewrite is working. And we'll start tweaking the rule you need.

Regards
Andrew

User avatar
Posts: 5
Joined: 11 Jul 2013, 10:55

Re: Really need help with 301 redirects!

12 Jul 2013, 12:43

Great! I am going to try that early tomorrow morning- I don't dare do that in the middle of a workday- it's a live site to a busy doctors' practice. I'll let you know what I discover.

thank you!

User avatar
Posts: 5
Joined: 11 Jul 2013, 10:55

Re: Really need help with 301 redirects!

12 Jul 2013, 23:53

Well, it is late at night here so I gave it a try. I pasted the code into the .htaccess file and uploaded and it did nothing - no 403 Forbidden - the pages of the site loaded just fine. Does that mean that the ISAPI_Rewrite is not working?

thanks!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Really need help with 301 redirects!

13 Jul 2013, 14:15

Correct. Try to contact your hosting and ask them to troubleshoot the issue.

Regards
Andrew

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Really need help with 301 redirects!

13 Jul 2013, 14:16

Also, you can edit this rule to affect ony one page(not all of them). Even non-existing page.

Code: Select all
RewriteEngine on
RewriteBase /

RewriteRule ^helicontest$ - [F]


In this case you request /helicontest and should be able to get FORBIDDEN

User avatar
Posts: 5
Joined: 11 Jul 2013, 10:55

Re: Really need help with 301 redirects!

19 Jul 2013, 21:28

Andrew,

There was a problem and they fixed it; everything is all set. Now I know what to do. THANK YOU SO MUCH!

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 10 guests