Topic: .htaccess trials and tribulations Pages that link to <a href="https://ozoneasylum.com/backlink?for=31697" title="Pages that link to Topic: .htaccess trials and tribulations" rel="nofollow" >Topic: .htaccess trials and tribulations\

 
Author Thread
Red Ninja
Bipolar (III) Inmate

From: Detroit, MI US
Insane since: Mar 2001

IP logged posted posted 03-01-2010 19:15 Edit Quote

Ok, I need to do a redirect. I have a directory I need to send to another website. The problem is that sometimes the traffic will be using an http: protocol, and sometimes it'll be mms. I need to keep this intact. Does anyone know how to maintain the protocol in a redirect? Example:

redirect 301 /old_directory/ {insert protocol}://www.differentwebsite.com/new_directory/

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 03-02-2010 16:46 Edit Quote

well... you don't.
All the webserver ever sees is 'http', since that's the protocol the windows media player is already speaking at that point (WMP first triest MMS over UDP, then TCP, then ..., then via http - and then I'd assume it's pretty much a standard http request and it should cope with the webserver redirecting to an http:// url, since it's http anyhow).

Have you given it a try?

Red Ninja
Bipolar (III) Inmate

From: Detroit, MI US
Insane since: Mar 2001

IP logged posted posted 03-04-2010 20:01 Edit Quote

I did give it a try and it didn't seem to want to work. I then tried to mod_rewrite the protocol into a variable too and that didn't yield any results either. That's when I came here. I gave up yesterday and moved onto other projects for the time being. What I wound up doing instead was:

RedirectMatch 301 ^/old_directory(.*) http://www.newserver.com/new_playlist.asx

and then the playlist has the new location of the stream. It feels like a hack job, but it's the best I can do, and it's more than enough for this job.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu