ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Search Engine Optimization
  New Posts New Posts RSS Feed - Redirect Loop error with SEO files and IIS 7
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Redirect Loop error with SEO files and IIS 7

 Post Reply Post Reply Page  12>
Author
Message Reverse Sort Order
BYRSC View Drop Down
Newbie
Newbie


Joined: 16-September-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote BYRSC Quote  Post ReplyReply Direct Link To This Post Topic: Redirect Loop error with SEO files and IIS 7
    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!
Back to Top
BYRSC View Drop Down
Newbie
Newbie


Joined: 16-September-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote BYRSC Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 1:59pm
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.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 1:03pm
Originally posted by Greg Dinger Greg Dinger wrote:

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.
 
 
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.
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 12:54pm
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.
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
BYRSC View Drop Down
Newbie
Newbie


Joined: 16-September-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote BYRSC Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 12:48pm
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
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 12:12pm
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

Server.Transfer("/404-custom.asp")


... 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".
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
BYRSC View Drop Down
Newbie
Newbie


Joined: 16-September-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote BYRSC Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 11:27am
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?
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 10:31am
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
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
BYRSC View Drop Down
Newbie
Newbie


Joined: 16-September-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote BYRSC Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 10:11am
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.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2009 at 9:26am
Originally posted by BYRSC BYRSC wrote:

I checked to make sure that the redirect would work by directly linking the custom 404 error page I made in the root directory and it worked just fine
 
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
Back to Top
 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.