View Single Post
  #6 (permalink)  
Old 02-29-2008, 01:31 PM
Leif.Högberg Leif.Högberg is offline
Member
 
Join Date: Aug 2007
Location: Sweden
Posts: 52
Send a message via MSN to Leif.Högberg
Default

I'll answer in two parts, first i'll reask the question that was asked by xentek above. And second I'll give a solution that you can use assuming the answer to the question above is negative.

So what xentek was asking above is that if you have two requests for two different videos would the two seperated requests both begin with the path 'videostore/local/'? Example:
http:// domain.com/video/videostore/local/diehard.mov
http:// domain.com/video/videostore/local/diehard2.mov
If the above is true, then what you should do is hard code the path ('videostore/local/') in a variable inside your controller so that the requests can be written as:
http:// domain.com/video/diehard.mov
http:// domain.com/video/diehard2.mov

Now if the above is false the solution would be to encode parameter somehow before creating the link.

One such solution would be using base64 encoded strings (see base64_encode/base64_decode)
If encoding the parameter it would now look like:
http:// domain.com/video/VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==

If SEO is a factor or you for some reason think that url is confusing you could use urlencode, or any other form of encoding, instead.

Hope this helps..

Last edited by Leif.Högberg : 02-29-2008 at 01:33 PM.
Reply With Quote