Solved

Inconsistent Redirects

Posted on 2013-10-30
4
250 Views
Last Modified: 2013-11-06
I'm having an issue with inconsistent redirects.
If you visit www.afge.org/benefits it should redirect you to http://www.afge.org/index.cfm?Page=MemberBenefits 

Sometimes when you click the link it works and sometimes it hangs,
To reproduce this you can open "Private" browser windows and type "www.afge.org/benefits".

If you do this, you'll get mixed results, sometimes you'll get redirected to the target page and sometimes you'll get stuck waiting and it will time out.

If you inspect the request with a packet sniffer, you'll see that the 302 redirect gets to the browser but sometimes the browser just won't issue the request to the server to the new URI.

I'm completely stumped by this and was wondering if anyone has any insight into what may be causing this inconsistent behavior.

PS. Also, I'm tagging this question with Apache Tomcat because that's the application server that ColdFusion 10 sits on. The codebase is the same as we had it on ColdFusion 9 and the issue was not there. It started when we upgraded to CF10.
0
Comment
Question by:Rodrigo Munera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 26

Expert Comment

by:arober11
ID: 39613011
What stack to you have e.g.  do you have an apache HTTPD instance sitting in front of the Tomcat?

Also what are you using to generate the Redirects: Apache HTTPD mod_rewrite, Apache HTTPD mod_alias, Apache Tomcat / Java, Cold Fusion Markup .....?

And what redirect rules (code) do you currently have?
0
 
LVL 4

Author Comment

by:Rodrigo Munera
ID: 39613112
It's stacked on the latest version of IIS (I believe it's 7.5)

The redirects are being handled by CFML being run as a response to a 404. So /benefits path doesn't actually exist.

So the request comes in, 404 is triggered which is mapped to CFML component that looks up the value-pair for the requested path and does one of 2 things.

If there's a name-value pair for the requested path, it does a 301 cflocation redirect. (using ColdFusion's cfscript's cflocation equivalent which is just
location(url=finalURLaddress,addtoken="false",statusCode="301");

Open in new window


If there's no name-value pair, then the user is redirected to a custom 404 page using the same code above.
0
 
LVL 16

Accepted Solution

by:
Gurpreet Singh Randhawa earned 500 total points
ID: 39626616
have u tried with simple meta tag rather than usin coldfusion's location tag
0
 
LVL 4

Author Closing Comment

by:Rodrigo Munera
ID: 39628500
I'll give it a shot, cflocation is supposed to be a header redirect using meta data, and then you just set the code and text.

I've replaced the piece of code that does the forwarding the to the following:

	<cfheader statuscode="301" statustext="Moved Permanently">
	<cfheader name="Location" value="#destinationURL#">
	<cfabort>

Open in new window


Some initial testing seemed to show an improvement, time will tell.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Open dialog with server side controls in it 3 46
$_SERVER Variable question 31 49
Fix Form size HTML 16 30
title attribute 5 23
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question