Redirect Loop error with SEO files and IIS 7 |
Post Reply | Page 12> |
Author | |
BYRSC
Newbie Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 14-May-2009 at 2:28pm |
My hosting company has made the necessary adjustment and everything is now working properly.
Thank You again for all your help! |
|
BYRSC
Newbie Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I have taken the information you have given me and sent it to my web hosting site tech support. Hopefully they will be able to fix this now.
Thank you for all your help. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
If you have not done so, please do what I suggested earlier. CALL tech support and ask the question: Have them check the IIS setting and make sure it is a URL and not a FILE PATH.
|
|
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
It sounds like it's redirecting to 404.asp, not executing 404.asp. There is a big difference between the two, as shown above in our screen shot at the beginning of this thread and as mentioned by Greg Dinger above.
|
|
BYRSC
Newbie Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I put it in just as you said and it's the same thing. Below is the link to page_not_found.html and to the viewcategories page which if you click on a category, it goes into the loop.
http://www.blumaxtools.com/page_not_found.html http://www.blumaxtools.com/products/pc/viewcategories.asp |
|
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
The only explanation for an error in that case is that it is performing a server transfer to a file that cannot be found. For example, if you do
... this assumes that "404-custom.asp" is in the root of the Web site. Not in the "pc" folder. We recommend that you do the following: (a) Create a simple HTML page. It can even be a completely empty file without any HTML code at all and just one line of text that says "Page Not Found". (b) Call it "page_not_found.html" and place it in the root of the Web site, regardless of where the ProductCart-powered store is located in the web site directory tree. (c) Then make sure that 404b.asp reads "/page_not_found.html". |
|
BYRSC
Newbie Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
Somehow it is the 404b.asp. I did change the 404b.asp to go to Server.Transfer("/404-custom.asp") but it stays in the loop. I made sure the page was found on the server by physically checking the link. When I changed the path on the 404b.asp to Server.Transfer("/pc/404-custom.asp") I received a 500 error code when trying to go to the products. This tells me somehow it has to be the 404b.asp, but I just don't know how?
|
|
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
If 404.asp is the custom error handler, there are by definition no scenarios in which the file is not found. 404.asp will always be found as it is the page used as the "404 Page Not Found" error handler. It will always be invoked when a page is not found.
404.asp then performs a server transfer to 404b.asp when the "not found" page is determined not to be a category page, content page, or product page. The only scenario in which we can see a loop happen is if you entered 404.asp as the "Page Not Found" file in 404b.asp. In that case 404b.asp would redirect to 404.asp and create a loop. 404b.asp must instead contain the name of the file that is shown when the "not found" page is not a category page, content page, or product page. For example, something like: "/page_not_found.html" So review 404b.asp and make sure that it has been configured properly. Edited by earlyimp - 13-May-2009 at 10:34am |
|
BYRSC
Newbie Joined: 16-September-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
I am able to change it from a file to a url in the toolbar, so I put a custom 404 error page in products/pc/404-custom.asp and it works, so the url function for the error page is working. Here is what the loop error looks like according to what IIS7 is calling for:
Here are the headers showing that the redirects are going on and on when the file 404.asp is not found itself!! http://blumaxtools.com/products/pc/404.asp GET /products/pc/404.asp HTTP/1.1 --> HTTP/1.x 302 Redirect Cache-Control: private Content-Type: text/html; charset=UTF-8 Location: http://blumaxtools.com/products/pc/404.asp Server: Microsoft-IIS/7.0 http://blumaxtools.com/products/pc/404.asp --> GET /products/pc/404.asp HTTP/1.1 Host: blumaxtools.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 It looks like the 404.asp is not forwarding to 404b.asp for some reason. There have not been any changes to the 404.asp page. It just does not make sense. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
That may be an insufficient test. The 404 page may render, but there is an important distinction between "file path" and "URL". If Plesk sets the 404 as a file path, the page may appear to work just fine, but it won't work for the SEO mod.
For example, IX web hosting's CP sets the 404 as a file path and the SEO mod WILL NOT WORK. And don't get me started about their tech support dweebs.
So you have to ask your tech folks to look in IIS to see if the page is set as a "file path" or "URL". If they can override it, have them do so. If they cannot, consider another host. This mod is too easy to implement and the hosting environment should not get in the way of it working. Edited by Greg Dinger - 13-May-2009 at 9:27am |
|
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions 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 |