[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

mod_rewrite douple encoding url

Posted on 2009-04-26
3
Medium Priority
?
859 Views
Last Modified: 2012-05-06
Hey everyone.  I'm have a problem with double encoding of a URL and I can't seem to figure out exactly how to encode the URL again.  

I have just started using mod_rewrite and the page that gets displayed with the abolute URL, is the exact same as that that gets displayed with the mod_rewrite path...as expected.  However on the page I have a href link to another url, and when a user clicks it, I think mod_rewrite is decoding the url twice.

On one server it isn't douple encoding the url, but on other other it is.  I can't find a difference in configuration does anyone know is this is a configuration issue?
0
Comment
Question by:vandepol
3 Comments
 
LVL 1

Expert Comment

by:majikman
ID: 24237453
i suggest posting your mod_rewrite code
0
 

Accepted Solution

by:
vandepol earned 0 total points
ID: 24237476
Here is the mod_rewrite code.  

Also there is a popup who's url is generated that is the culpret of the encoded url.

Thanks for taking a look
ReWriteRule ^/freeplay$ /paasBVA/bva/listpublicfreegames.action?submit.x=0&public=true [L,PT]
 
 
 
			<td width="33%">
			<span class="orangeText"><bean:message key="game.online" /></span><br />
			<x:forEach select="$availablegamesoneline">			    
				<c:set var="skinname"><x:out select="@skinname"/></c:set>										
				<c:set var="configId"><x:out select="@id"/></c:set>
				<c:set var="flashFileName"><x:out select="@flashfilename"/></c:set>
				<c:set var="skinswf"><x:out select="@skinswf"/></c:set>
				<jsp:include page="freeGameSubmitForm.jsp">
					<jsp:param name="userId" value="${freeGameLaunchForm.userId}"/>
					<jsp:param name="userNum" value="${freeGameLaunchForm.userNum}"/>
					</jsp:include>
				<c:set var="skinalias"><x:out select="@skinalias"/></c:set>						   
					
				<div class="gameImg">
					<a href="javascript:void(0)" onmouseover="javascript:window.status='<bean:message key="games.label.play"/> <bean:message key="${skinalias}"/>'; return true;" onmouseout="javascript:window.status=''; return true;" onclick="javascript:openWindow(urlencode(document.SL<x:out select='@id'/>),'pop${site.siteId}SL<x:out select='@id'/>','760','570','yes');" title="<bean:message key="games.label.play"/> <bean:message key="${skinalias}"/>"><img style="border:0;" src="${imagepath}/${fn:toLowerCase(skinname)}.gif" alt="<x:out select='@skindescription'/>" title="<bean:message key="games.label.play"/> <bean:message key="${skinalias}"/>"/>&nbsp;<bean:message key="${skinalias}"/></a>
				</div>
				<%--<a href="javascript:void(0)" onmouseover="javascript:window.status='<bean:message key="games.label.play"/> <bean:message key="${skinalias}"/>'; return true;" onmouseout="javascript:window.status=''; return true;" class="coins" onclick="javascript:openWindow(document.SL<x:out select='@id'/>,'pop${site.siteId}SL<x:out select='@id'/>','760','570','yes');" title="<bean:message key="games.label.play"/> <bean:message key="${skinalias}"/>"><bean:message key="games.label.play"/></a><br />					--%>
			</x:forEach>
			</td>

Open in new window

0
 
LVL 2

Assisted Solution

by:JeremyT923
JeremyT923 earned 2000 total points
ID: 24477934
Try changing the RewriteRule line to this:

ReWriteRule ^/freeplay$ /paasBVA/bva/listpublicfreegames.action?submit.x=0&public=true [L,NE,PT]

Open in new window

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month18 days, 1 hour left to enroll

830 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