Really need help with 301 redirects!
9 posts
• Page 1 of 1
Really need help with 301 redirects!
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!
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!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Really need help with 301 redirects!
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:
Regards
Andrew
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
Re: Really need help with 301 redirects!
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!
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!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Really need help with 301 redirects!
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):
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
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
Re: Really need help with 301 redirects!
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!
thank you!
Re: Really need help with 301 redirects!
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!
thanks!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Really need help with 301 redirects!
Correct. Try to contact your hosting and ask them to troubleshoot the issue.
Regards
Andrew
Regards
Andrew
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Really need help with 301 redirects!
Also, you can edit this rule to affect ony one page(not all of them). Even non-existing page.
In this case you request /helicontest and should be able to get FORBIDDEN
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^helicontest$ - [F]
In this case you request /helicontest and should be able to get FORBIDDEN
Re: Really need help with 301 redirects!
Andrew,
There was a problem and they fixed it; everything is all set. Now I know what to do. THANK YOU SO MUCH!
There was a problem and they fixed it; everything is all set. Now I know what to do. THANK YOU SO MUCH!
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests